You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2016/09/07 16:50:57 UTC
[2/3] lucy git commit: Fix charmonizer memory leaks
Fix charmonizer memory leaks
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/dd30ae94
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/dd30ae94
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/dd30ae94
Branch: refs/heads/master
Commit: dd30ae94a677aba8f683254c79c29dc6d12651fd
Parents: 5b1bedb
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Wed Sep 7 17:40:51 2016 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Wed Sep 7 17:46:20 2016 +0200
----------------------------------------------------------------------
common/charmonizer.c | 3 +++
common/charmonizer.main | 1 +
2 files changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/dd30ae94/common/charmonizer.c
----------------------------------------------------------------------
diff --git a/common/charmonizer.c b/common/charmonizer.c
index 2838940..849a5b6 100644
--- a/common/charmonizer.c
+++ b/common/charmonizer.c
@@ -5609,6 +5609,8 @@ chaz_MakeBinary_obj_string(chaz_MakeBinary *self) {
tmp = chaz_Util_join("", retval, sep, obj_path, NULL);
free(retval);
retval = tmp;
+
+ free(obj_path);
}
return retval;
@@ -8878,6 +8880,7 @@ lucy_MakeFile_new(chaz_CLI *cli) {
self->cfish_lib_name = "clownfish";
}
+ free(cfcore_filename);
return self;
}
http://git-wip-us.apache.org/repos/asf/lucy/blob/dd30ae94/common/charmonizer.main
----------------------------------------------------------------------
diff --git a/common/charmonizer.main b/common/charmonizer.main
index f2cb1a7..a783c7e 100644
--- a/common/charmonizer.main
+++ b/common/charmonizer.main
@@ -299,6 +299,7 @@ lucy_MakeFile_new(chaz_CLI *cli) {
self->cfish_lib_name = "clownfish";
}
+ free(cfcore_filename);
return self;
}