commit: 5fdaca3a10e30b716cec7543f89609a3c219699b
parent db7fb9b2aec5ad629d35f7e7cb775bd3a916e38c
Author: Eivind Uggedal <eivind@uggedal.com>
Date: Wed, 9 Dec 2015 12:31:20 +0000
Free git objects
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/urmoms.c b/urmoms.c
@@ -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);