aboutsummaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-12-30 01:25:21 -0800
committerJunio C Hamano <gitster@pobox.com>2009-12-30 01:25:21 -0800
commit9e7ad090fad725e5f1862f64b07dc15d54bdc5b9 (patch)
tree68eac0341c001ba82d4a309e0c80b166e0007142 /diff.c
parentc2ff10c98e22ae64d553273e6d67bb123a1c916f (diff)
parentb0b3a241e2ca1ba5b928a128b6dcafb990df6e75 (diff)
downloadgit-9e7ad090fad725e5f1862f64b07dc15d54bdc5b9.tar.gz
git-9e7ad090fad725e5f1862f64b07dc15d54bdc5b9.tar.xz
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/diff.c b/diff.c
index d14a575e8..aad4b3977 100644
--- a/diff.c
+++ b/diff.c
@@ -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);