summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2017-03-12 19:50:45 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2017-03-12 21:22:52 +0100
commit0f05e4b4f0f7dad20b26d60aa350b90fb47f1eb8 (patch)
treed60f71e3819e87554eed29895a96e95d96ddc119
parent7a515945dd3e335644ba5167f2a44e3fde3fa18b (diff)
fix memory leak of commitinfo->parent
-rw-r--r--stagit.c1
1 files changed, 1 insertions, 0 deletions
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 *