diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-12-30 10:25:21 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-12-30 10:25:21 +0100 |
commit | 9e7ad090fad725e5f1862f64b07dc15d54bdc5b9 (patch) | |
tree | 68eac0341c001ba82d4a309e0c80b166e0007142 /diff.c | |
parent | Merge branch 'jk/1.7.0-status' (diff) | |
parent | Merge branch 'maint-1.6.1' into maint (diff) | |
download | git-9e7ad090fad725e5f1862f64b07dc15d54bdc5b9.tar.xz git-9e7ad090fad725e5f1862f64b07dc15d54bdc5b9.zip |
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); |