From 5fdaca3a10e30b716cec7543f89609a3c219699b Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Wed, 9 Dec 2015 12:31:20 +0000 Subject: [PATCH] Free git objects --- urmoms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/urmoms.c b/urmoms.c index 3eb8471..5246cd2 100644 --- a/urmoms.c +++ b/urmoms.c @@ -589,6 +589,7 @@ main(int argc, char *argv[]) writeheader(fp); fputs("
\n", fp);
 		writeblobhtml(fp, (git_blob *)obj);
+		git_object_free(obj);
 		if (ferror(fp))
 			err(1, "fwrite");
 		fputs("
\n", fp); @@ -603,6 +604,7 @@ main(int argc, char *argv[]) writeheader(fp); fputs("
\n", fp);
 		writeblobhtml(fp, (git_blob *)obj);
+		git_object_free(obj);
 		if (ferror(fp))
 			err(1, "fwrite");
 		fputs("
\n", fp); -- libgit2 1.1.1