harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r1001065 - /harmony/enhanced/java/trunk/jdktools/modules/samsa/src/main/native/samsa/samsa.c
Date Fri, 24 Sep 2010 20:47:52 GMT
Author: hindessm
Date: Fri Sep 24 20:47:51 2010
New Revision: 1001065

URL: http://svn.apache.org/viewvc?rev=1001065&view=rev
Log:
Fix memory leak.

Modified:
    harmony/enhanced/java/trunk/jdktools/modules/samsa/src/main/native/samsa/samsa.c

Modified: harmony/enhanced/java/trunk/jdktools/modules/samsa/src/main/native/samsa/samsa.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/jdktools/modules/samsa/src/main/native/samsa/samsa.c?rev=1001065&r1=1001064&r2=1001065&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/jdktools/modules/samsa/src/main/native/samsa/samsa.c (original)
+++ harmony/enhanced/java/trunk/jdktools/modules/samsa/src/main/native/samsa/samsa.c Fri Sep
24 20:47:51 2010
@@ -135,7 +135,7 @@ int main (int argc, char **argv, char **
     int newIndex = 0;
     char *root = NULL;
     char *fullExePath = NULL;
-    TOOLDATA *pToolData = (TOOLDATA *) malloc(sizeof(TOOLDATA));
+    TOOLDATA *pToolData;
     
     int isJavaw = 0;
     int toolType = 0; /* 0 = JRE tool, 1 = JDK tool, 2 = JRE tool in jdk/bin */



Mime
View raw message