summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 799fdb4)
raw | patch | inline | side by side (parent: 799fdb4)
author | Jeff King <peff@peff.net> | |
Wed, 30 Dec 2009 09:02:53 +0000 (04:02 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 30 Dec 2009 09:22:27 +0000 (01:22 -0800) |
We read the output from textconv helpers over a pipe, but we
never actually closed our end of the pipe after using it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
never actually closed our end of the pipe after using it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c | patch | blob | history |
index 387d19fdedef650516ea9fd7679f48e3776a7616..69147b802f73203ab27352ac1b3513138fa50417 100644 (file)
--- a/diff.c
+++ b/diff.c
if (start_command(&child) != 0 ||
strbuf_read(&buf, child.out, 0) < 0 ||
finish_command(&child) != 0) {
+ close(child.out);
if (temp.name == temp.tmp_path)
unlink(temp.name);
error("error running textconv command '%s'", pgm);
return NULL;
}
+ close(child.out);
if (temp.name == temp.tmp_path)
unlink(temp.name);