From 512a31e81ff5e697d7ca08b6504309024cd9928d Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 6 Jan 2016 19:11:11 +0100 Subject: [PATCH] free obj --- stagit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stagit.c b/stagit.c index 630cb90..966ee55 100644 --- 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++) -- libgit2 1.1.1