fix memory leak of blob object
This commit is contained in:
parent
e862768a1f
commit
7a515945dd
1
stagit.c
1
stagit.c
|
@ -839,6 +839,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *path)
|
||||||
else
|
else
|
||||||
fprintf(fp, "%juB", (uintmax_t)filesize);
|
fprintf(fp, "%juB", (uintmax_t)filesize);
|
||||||
fputs("</td></tr>\n", fp);
|
fputs("</td></tr>\n", fp);
|
||||||
|
git_object_free(obj);
|
||||||
} else if (!git_submodule_lookup(&module, repo, entryname)) {
|
} else if (!git_submodule_lookup(&module, repo, entryname)) {
|
||||||
fprintf(fp, "<tr><td>m---------</td><td><a href=\"%sfile/.gitmodules.html\">",
|
fprintf(fp, "<tr><td>m---------</td><td><a href=\"%sfile/.gitmodules.html\">",
|
||||||
relpath);
|
relpath);
|
||||||
|
|
Loading…
Reference in a new issue