summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Ortega <miquel.ortega9@gmail.com>2020-09-22 15:55:18 +0100
committerOscar Benedito <oscar@oscarbenedito.com>2020-09-22 18:48:27 +0200
commit854bb3b66167ccd7e150a18557824f8992bbe25e (patch)
tree56350b2adeb237d99bd1eef325c88410a12a72d1
parent72286f3ff1246f0ab5eb4c310e475a174fed4c6c (diff)
Fix wrong memory deallocation
-rw-r--r--stagit.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/stagit.c b/stagit.c
index 69abeaa..8b51f3f 100644
--- a/stagit.c
+++ b/stagit.c
@@ -1098,7 +1098,6 @@ writefilestree(FILE *fp, git_tree *tree, const char *path)
entrypath);
writefooter(fp_subtree);
relpath = oldrelpath;
- git_object_free(obj);
lc = -1;
if (ret)
return ret;