From: Hiltjo Posthuma Date: Sun, 12 Mar 2017 18:50:12 +0000 (+0100) Subject: fix memory leak of blob object X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=7a515945dd3e335644ba5167f2a44e3fde3fa18b;p=forks%2Fstagit.git fix memory leak of blob object --- 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("\n", fp); + git_object_free(obj); } else if (!git_submodule_lookup(&module, repo, entryname)) { fprintf(fp, "m---------", relpath);