]> git.armaanb.net Git - stagit.git/commitdiff
fix memory leak of commitinfo->parent
authorHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 12 Mar 2017 18:50:45 +0000 (19:50 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 12 Mar 2017 20:22:52 +0000 (21:22 +0100)
stagit.c

index a99e18b20977c75b7237302881a572700df34a02..d9832945177342903d3ff2696ab6d4e86a6b03ed 100644 (file)
--- a/stagit.c
+++ b/stagit.c
@@ -177,6 +177,7 @@ commitinfo_free(struct commitinfo *ci)
        git_tree_free(ci->commit_tree);
        git_tree_free(ci->parent_tree);
        git_commit_free(ci->commit);
+       git_commit_free(ci->parent);
 }
 
 struct commitinfo *