From: Hiltjo Posthuma Date: Sun, 12 Mar 2017 18:50:45 +0000 (+0100) Subject: fix memory leak of commitinfo->parent X-Git-Url: https://git.armaanb.net/?p=stagit.git;a=commitdiff_plain;h=0f05e4b4f0f7dad20b26d60aa350b90fb47f1eb8 fix memory leak of commitinfo->parent --- diff --git a/stagit.c b/stagit.c index a99e18b..d983294 100644 --- 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 *