summaryrefslogtreecommitdiff
path: root/stagit.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-01-06 19:11:11 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-01-06 19:11:11 +0100
commit512a31e81ff5e697d7ca08b6504309024cd9928d (patch)
tree16a0e0532501658142dfe4e1dfcd28ce50ed855b /stagit.c
parente45eac89b8c2ac5a6d896ac7fd019a1039fa885c (diff)
free obj
Diffstat (limited to 'stagit.c')
-rw-r--r--stagit.c3
1 files changed, 3 insertions, 0 deletions
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++)