X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-cat-file.c;h=880e75af5e1951689a417aa47e64f99a20d46ae6;hb=c636d0e2bcffdbd55c096944561d9ac470da600e;hp=bd343efae7d6cc6fddef4df5c3433b97bd640d3c;hpb=7ac749c96d143ba4f76723959892cbaddbe8ed07;p=git.git diff --git a/builtin-cat-file.c b/builtin-cat-file.c index bd343efae..880e75af5 100644 --- a/builtin-cat-file.c +++ b/builtin-cat-file.c @@ -181,6 +181,7 @@ static int batch_one_object(const char *obj_name, int print_contents) write_or_die(1, contents, size); printf("\n"); fflush(stdout); + free(contents); } return 0;