Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-01-10 11:49:47 +0300
committerJunio C Hamano <gitster@pobox.com>2010-01-10 11:49:47 +0300
commitc5034673fd92b6278e6c9d55683770ec01fafc89 (patch)
tree04435179aa4d3dfb0b2ac746072731929d7adcf1 /diff.c
parent405923761a8cd12d0047c215b69df9c6aa96723e (diff)
parent96aa7adda3b0254e4b9904f53bb38cd76bfea7bb (diff)
Merge branch 'maint-1.6.1' into maint-1.6.2
* maint-1.6.1: base85: Make the code more obvious instead of explaining the non-obvious base85: encode_85() does not use the decode table base85 debug code: Fix length byte calculation checkout -m: do not try to fall back to --merge from an unborn branch branch: die explicitly why when calling "git branch [-a|-r] branchname". 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 Conflicts: diff.c
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 4f980aded6..9ec5767709 100644
--- a/diff.c
+++ b/diff.c
@@ -3586,10 +3586,12 @@ 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);
remove_tempfile();
error("error running textconv command '%s'", pgm);
return NULL;
}
+ close(child.out);
remove_tempfile();
return strbuf_detach(&buf, outsize);