lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r468623 - in /lucene/lucy/trunk/charmonizer: charmonize.c src/Charmonizer/Modules/FuncMacro.charm
Date Sat, 28 Oct 2006 03:11:47 GMT
Author: marvin
Date: Fri Oct 27 20:11:46 2006
New Revision: 468623

URL: http://svn.apache.org/viewvc?view=rev&rev=468623
Log:
Fix a couple minor memory leaks.

Modified:
    lucene/lucy/trunk/charmonizer/charmonize.c
    lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/FuncMacro.charm

Modified: lucene/lucy/trunk/charmonizer/charmonize.c
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/charmonize.c?view=diff&rev=468623&r1=468622&r2=468623
==============================================================================
--- lucene/lucy/trunk/charmonizer/charmonize.c (original)
+++ lucene/lucy/trunk/charmonizer/charmonize.c Fri Oct 27 20:11:46 2006
@@ -111,6 +111,7 @@
     free(cc_flags);
     free(os_name);
     free(outpath);
+    free(verbosity_str);
 
     return conf_fh;
 }

Modified: lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/FuncMacro.charm
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/FuncMacro.charm?view=diff&rev=468623&r1=468622&r2=468623
==============================================================================
--- lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/FuncMacro.charm (original)
+++ lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/FuncMacro.charm Fri Oct 27 20:11:46
2006
@@ -5,6 +5,7 @@
 #include "Charmonizer/Modules/FuncMacro.h"
 #include <string.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 
 static char iso_func_code[] = METAQUOTE
@@ -44,6 +45,7 @@
         has_funcmac     = true;
         has_iso_funcmac = true;
     }
+    free(output);
 
     /* check for GNUC func macro */
     output = capture_output(gnuc_func_code, strlen(gnuc_func_code), 
@@ -52,6 +54,7 @@
         has_funcmac      = true;
         has_gnuc_funcmac = true;
     }
+    free(output);
 
     /* write out common defines */
     if (has_funcmac) {



Mime
View raw message