git-query
git data extraction tool using c and libgit2
git clone https://9o.is/git/git-query.git
commit 388292df5d746bb1272ade066a26e27f62658a76 parent bb6db43c7d64834005bba9c2cdf50b25f793591b Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 6 Jan 2016 19:11:11 +0100 free obj Diffstat:
| M | stagit.c | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/stagit.c b/stagit.c @@ -866,6 +866,8 @@ writerefs(FILE *fp) relpath = "../"; commitinfo_free(ci); + git_object_free(obj); + obj = NULL; git_reference_free(dref); dref = NULL; } @@ -875,6 +877,7 @@ writerefs(FILE *fp) } err: + git_object_free(obj); git_reference_free(dref); for (i = 0; i < refcount; i++)