summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2017-03-12 19:50:12 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2017-03-12 21:22:52 +0100
commit7a515945dd3e335644ba5167f2a44e3fde3fa18b (patch)
tree35883ade742f03fa572bc4a9c8399a3cfb46576e
parente862768a1f396da6d013570941faefeced61351f (diff)
fix memory leak of blob object
-rw-r--r--stagit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stagit.c b/stagit.c
index c3693c7..a99e18b 100644
--- a/stagit.c
+++ b/stagit.c
@@ -839,6 +839,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *path)
else
fprintf(fp, "%juB", (uintmax_t)filesize);
fputs("</td></tr>\n", fp);
+ git_object_free(obj);
} else if (!git_submodule_lookup(&module, repo, entryname)) {
fprintf(fp, "<tr><td>m---------</td><td><a href=\"%sfile/.gitmodules.html\">",
relpath);