diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-12-30 01:25:21 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-12-30 01:25:21 -0800 |
commit | 9e7ad090fad725e5f1862f64b07dc15d54bdc5b9 (patch) | |
tree | 68eac0341c001ba82d4a309e0c80b166e0007142 /diff.c | |
parent | c2ff10c98e22ae64d553273e6d67bb123a1c916f (diff) | |
parent | b0b3a241e2ca1ba5b928a128b6dcafb990df6e75 (diff) | |
download | git-9e7ad090fad725e5f1862f64b07dc15d54bdc5b9.tar.gz |
Merge branch 'maint'
* maint:
textconv: stop leaking file descriptors
commit: --cleanup is a message option
git count-objects: handle packs bigger than 4G
t7102: make the test fail if one of its check fails
Documentation: always respect core.worktree if set
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3823,11 +3823,13 @@ 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) { + close(child.out); strbuf_release(&buf); remove_tempfile(); error("error running textconv command '%s'", pgm); return NULL; } + close(child.out); remove_tempfile(); return strbuf_detach(&buf, outsize); |