harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r549526 - /harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c
Date Thu, 21 Jun 2007 16:03:23 GMT
Author: gshimansky
Date: Thu Jun 21 09:03:22 2007
New Revision: 549526

URL: http://svn.apache.org/viewvc?view=rev&rev=549526
Log:
Applied additional patch for HARMONY-4190 to free allocated cmd_line


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

Modified: harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c?view=diff&rev=549526&r1=549525&r2=549526
==============================================================================
--- harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c (original)
+++ harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c Thu Jun 21
09:03:22 2007
@@ -272,8 +272,11 @@
                     TRUE, 0, NULL, NULL, &startInfo, &procInfo)) { 
 
         fprintf(stderr, "Error creating process : %d\n", GetLastError());
+        free(cmd_line);
         return exit_code;
     }
+
+    free(cmd_line);
 
     // wait for child process to finish
     if (WAIT_FAILED == WaitForSingleObject(procInfo.hProcess, INFINITE)) {



Mime
View raw message