It is very obvious.
iff --git a/src/java.base/share/native/libjava/ClassLoader.c b/src/java.base/share/native/libjava/ClassLoader.c
index 31b3d814337..021a5a191eb 100644
--- a/src/java.base/share/native/libjava/ClassLoader.c
+++ b/src/java.base/share/native/libjava/ClassLoader.c
@@ -260,7 +260,7 @@ Java_java_lang_ClassLoader_defineClass0(JNIEnv *env,
utfName = NULL;
}
- return JVM_LookupDefineClass(env, lookup, utfName, body, length, pd, initialize, flags, classData);
+ result = JVM_LookupDefineClass(env, lookup, utfName, body, length, pd, initialize, flags, classData);
free_body:
free(body);