From 0f05e4b4f0f7dad20b26d60aa350b90fb47f1eb8 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 12 Mar 2017 19:50:45 +0100 Subject: [PATCH] fix memory leak of commitinfo->parent --- stagit.c | 1 + 1 file changed, 1 insertion(+) 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 * -- libgit2 1.1.1