Fix memory leak in man page generator

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

Branch: refs/heads/markdown_v2
Commit: ef0455fd487b7b03f235d0d3c98829168e857c84
Parents: 9fc463f
Author: Nick Wellnhofer <[email protected]>
Authored: Wed Dec 24 15:59:56 2014 +0100
Committer: Nick Wellnhofer <[email protected]>
Committed: Wed Dec 24 16:01:18 2014 +0100

----------------------------------------------------------------------
 compiler/src/CFCCMan.c | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/ef0455fd/compiler/src/CFCCMan.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCCMan.c b/compiler/src/CFCCMan.c
index 9753c97..736d0f0 100644
--- a/compiler/src/CFCCMan.c
+++ b/compiler/src/CFCCMan.c
@@ -381,6 +381,8 @@ S_man_create_param_list(CFCClass *klass, CFCFunction *func) 
{
             }
             result = CFCUtil_cat(result, "\"", NULL);
         }
+
+        FREEMEM(type_c);
     }
 
     result = CFCUtil_cat(result, "\n);", NULL);

Reply via email to