Free git objects

This commit is contained in:
Eivind Uggedal 2015-12-09 12:31:20 +00:00 committed by Hiltjo Posthuma
parent db7fb9b2ae
commit 5fdaca3a10

View file

@ -589,6 +589,7 @@ main(int argc, char *argv[])
writeheader(fp);
fputs("<pre>\n", fp);
writeblobhtml(fp, (git_blob *)obj);
git_object_free(obj);
if (ferror(fp))
err(1, "fwrite");
fputs("</pre>\n", fp);
@ -603,6 +604,7 @@ main(int argc, char *argv[])
writeheader(fp);
fputs("<pre>\n", fp);
writeblobhtml(fp, (git_blob *)obj);
git_object_free(obj);
if (ferror(fp))
err(1, "fwrite");
fputs("</pre>\n", fp);