stagit

fix memory leak of blob object

Hiltjo Posthuma contact@arjunchoudhary.com

commit: 6c387ab parent: d0dc7c6
1 files changed, 1 insertions(+), 0 deletions(-)
Mstagit.c+1-0
M · stagit.c +1, -0
1@@ -839,6 +839,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *path)
2 			else
3 				fprintf(fp, "%juB", (uintmax_t)filesize);
4 			fputs("</td></tr>\n", fp);
5+			git_object_free(obj);
6 		} else if (!git_submodule_lookup(&module, repo, entryname)) {
7 			fprintf(fp, "<tr><td>m---------</td><td><a href=\"%sfile/.gitmodules.html\">",
8 				relpath);