git-query
git data extraction tool using c and libgit2
git clone https://9o.is/git/git-query.git
commit 9263d9b6b460297d69c164415778d19de3a33419 parent b4f52a2528be154c037d78e1214bf21daa502cf2 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Mar 2017 19:50:12 +0100 fix memory leak of blob object Diffstat:
| M | stagit.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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);