X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-cat-file.c;h=880e75af5e1951689a417aa47e64f99a20d46ae6;hb=4df0d7af6be27fe5b0ffef438ef0169607253f66;hp=bd343efae7d6cc6fddef4df5c3433b97bd640d3c;hpb=b994ec142f296c7118823495764151c2a6227e1a;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;