X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=diff.c;h=43835d756c2c2c7ec579e1c38804fe33a706944f;hb=59773c7e583b1dcf4b63c4ee222b79cef460456b;hp=4d0a5b9ae6f2b5d921a2aae2a03e9a7f1616dc4d;hpb=9831b370b5e50b81faf47d858cd8c6e9e2200204;p=git.git diff --git a/diff.c b/diff.c index 4d0a5b9ae..43835d756 100644 --- a/diff.c +++ b/diff.c @@ -3596,6 +3596,7 @@ static char *run_textconv(const char *pgm, struct diff_filespec *spec, if (start_command(&child) != 0 || strbuf_read(&buf, child.out, 0) < 0 || finish_command(&child) != 0) { + strbuf_release(&buf); remove_tempfile(); error("error running textconv command '%s'", pgm); return NULL;