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/11/24 18:16:10 UTC

svn commit: r883805 - /incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/src/main/native/cjvmti.c

Author: monteith
Date: Tue Nov 24 18:16:09 2009
New Revision: 883805

URL: http://svn.apache.org/viewvc?rev=883805&view=rev
Log:
Fix malloc double free problem in cjvmti agent.

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=883805&r1=883804&r2=883805&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 Nov 24 18:16:09 2009
@@ -250,6 +250,7 @@
 	if (fp!=NULL)fclose(fp);
 	fp = NULL;
 	fclose(variableFile);
+    variableFile = NULL;
 
 	printf("Detag/deallocate\n");
 	while (Q_dequeue(&deTagObj, toDetag)!= 0){