Fix memory leak in CFC

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

Branch: refs/heads/master
Commit: 65bf8eff8d543658033499b54744d8983d12a532
Parents: ad5ba99
Author: Nick Wellnhofer <wellnho...@aevum.de>
Authored: Wed Sep 7 16:43:12 2016 +0200
Committer: Nick Wellnhofer <wellnho...@aevum.de>
Committed: Wed Sep 7 17:22:44 2016 +0200

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


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/65bf8eff/compiler/src/CFCParcel.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCParcel.c b/compiler/src/CFCParcel.c
index 25cc77c..409044c 100644
--- a/compiler/src/CFCParcel.c
+++ b/compiler/src/CFCParcel.c
@@ -302,6 +302,7 @@ S_new_from_json(const char *json, CFCFileSpec *file_spec) {
         S_set_prereqs(self, prereqs, path);
     }
     CFCBase_decref((CFCBase*)version);
+    CFCBase_decref((CFCBase*)major_version);
 
     CFCJson_destroy(parsed);
     return self;

Reply via email to