Updated Branches: refs/heads/c-bindings-wip1 fd1e1c40b -> de6b8bf8c
Fixes to man page generator Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/de6b8bf8 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/de6b8bf8 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/de6b8bf8 Branch: refs/heads/c-bindings-wip1 Commit: de6b8bf8ca2ad94aeef39ebbfba3e15d774b065d Parents: b5b9c83 Author: Nick Wellnhofer <[email protected]> Authored: Mon Dec 24 14:18:26 2012 +0100 Committer: Nick Wellnhofer <[email protected]> Committed: Mon Dec 24 14:18:26 2012 +0100 ---------------------------------------------------------------------- clownfish/compiler/src/CFCBindClass.c | 8 ++++---- clownfish/compiler/src/CFCBindCore.c | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/de6b8bf8/clownfish/compiler/src/CFCBindClass.c ---------------------------------------------------------------------- diff --git a/clownfish/compiler/src/CFCBindClass.c b/clownfish/compiler/src/CFCBindClass.c index 3a6b826..5ae163e 100644 --- a/clownfish/compiler/src/CFCBindClass.c +++ b/clownfish/compiler/src/CFCBindClass.c @@ -768,9 +768,9 @@ CFCBindClass_create_man_page(CFCBindClass *self) { + strlen(inheritance) + 20; - char *pod = (char*)MALLOCATE(size); - sprintf(pod, pattern, class_name, class_name, brief, synopsis, description, - functions_man, methods_man, inheritance); + char *man_page = (char*)MALLOCATE(size); + sprintf(man_page, pattern, class_name, class_name, brief, synopsis, + description, functions_man, methods_man, inheritance); FREEMEM(brief); FREEMEM(synopsis); @@ -779,7 +779,7 @@ CFCBindClass_create_man_page(CFCBindClass *self) { FREEMEM(methods_man); FREEMEM(inheritance); - return pod; + return man_page; } static char* http://git-wip-us.apache.org/repos/asf/lucy/blob/de6b8bf8/clownfish/compiler/src/CFCBindCore.c ---------------------------------------------------------------------- diff --git a/clownfish/compiler/src/CFCBindCore.c b/clownfish/compiler/src/CFCBindCore.c index 5402ca4..cfa788c 100644 --- a/clownfish/compiler/src/CFCBindCore.c +++ b/clownfish/compiler/src/CFCBindCore.c @@ -644,6 +644,8 @@ CFCBindCore_write_man_pages(CFCBindCore *self) { } FREEMEM(man3_path); + FREEMEM(man_pages); + FREEMEM(ordered); }
