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);