stagit
static git repository generator
git clone https://9o.is/git/stagit.git
commit 972df5b2cd466fd39d4629497c5ca5f1cd00e780 parent 82dd0368e30298fcd29c98b57bef99adb2daef10 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Mar 2017 21:24:07 +0100 fix memory leak of commitinfo Diffstat:
| M | stagit.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stagit.c b/stagit.c @@ -178,6 +178,7 @@ commitinfo_free(struct commitinfo *ci) git_tree_free(ci->parent_tree); git_commit_free(ci->commit); git_commit_free(ci->parent); + free(ci); } struct commitinfo * @@ -221,7 +222,6 @@ commitinfo_getbyoid(const git_oid *id) err: commitinfo_free(ci); - free(ci); return NULL; }