You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by mo...@apache.org on 2009/12/01 11:04:00 UTC
svn commit: r885731 -
/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/src/main/native/cjvmti.c
Author: monteith
Date: Tue Dec 1 11:04:00 2009
New Revision: 885731
URL: http://svn.apache.org/viewvc?rev=885731&view=rev
Log:
Fix double free of system class loader tag.
Modified:
incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/src/main/native/cjvmti.c
Modified: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/src/main/native/cjvmti.c
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/src/main/native/cjvmti.c?rev=885731&r1=885730&r2=885731&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/src/main/native/cjvmti.c (original)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/src/main/native/cjvmti.c Tue Dec 1 11:04:00 2009
@@ -296,11 +296,9 @@
Q_free(qStaticFields);
Q_free(qClassLoaders);
- /* Free allocated JClassLoader representing system class loader */
- if (systemLoader != NULL) {
- free(systemLoader);
- systemLoader = NULL;
- }
+ /* system loader will be freed by writeClassLoader. */
+ systemLoader = NULL;
+
(*env)->Deallocate(env, (unsigned char *)suspendedThreads);
printf("Finished creating dump file \n");
(*jniptr)->PopLocalFrame(jniptr, NULL); // Clears local references