lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject lucy-clownfish git commit: Fix memory leak introduced by previous commit
Date Wed, 04 Nov 2015 12:34:27 GMT
Repository: lucy-clownfish
Updated Branches:
  refs/heads/master ecb990ed7 -> 3c2685f81


Fix memory leak introduced by previous commit


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/3c2685f8
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/3c2685f8
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/3c2685f8

Branch: refs/heads/master
Commit: 3c2685f81ef323eb6e162578f8e386086419ef65
Parents: ecb990e
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Wed Nov 4 13:33:58 2015 +0100
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Wed Nov 4 13:33:58 2015 +0100

----------------------------------------------------------------------
 compiler/src/CFCPerlMethod.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/3c2685f8/compiler/src/CFCPerlMethod.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCPerlMethod.c b/compiler/src/CFCPerlMethod.c
index 4436d8a..7939748 100644
--- a/compiler/src/CFCPerlMethod.c
+++ b/compiler/src/CFCPerlMethod.c
@@ -179,6 +179,7 @@ S_xsub_body(CFCPerlMethod *self, CFCClass *klass) {
                 "arg_%s = (%s)CFISH_INCREF(arg_%s);\n    ";
             char *statement = CFCUtil_sprintf(pattern, name, type_c, name);
             body = CFCUtil_cat(body, statement, NULL);
+            FREEMEM(statement);
         }
     }
 


Mime
View raw message