incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From monte...@apache.org
Subject svn commit: r885731 - /incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/src/main/native/cjvmti.c
Date Tue, 01 Dec 2009 11:04:00 GMT
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



Mime
View raw message