fix memory leak of blob object - stagit-gopher - A git gopher frontend. (mirror) | |
git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2h… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit 7a515945dd3e335644ba5167f2a44e3fde3fa18b | |
parent e862768a1f396da6d013570941faefeced61351f | |
Author: Hiltjo Posthuma <[email protected]> | |
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=\"%sfi… | |
relpath); |