Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
convert: release strbuf on error return in filter_buffer_or_fd()
author
Rene Scharfe
<l.s.r@web.de>
Wed, 30 Aug 2017 17:49:40 +0000
(19:49 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 6 Sep 2017 23:49:27 +0000
(08:49 +0900)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
f139929
)
diff --git
a/convert.c
b/convert.c
index c5f0b210370c0ee83ef59298fa2260d627332399..4a0ed8d3cb1976f2af819ce39f4df7199748922e 100644
(file)
--- a/
convert.c
+++ b/
convert.c
@@
-423,8
+423,10
@@
static int filter_buffer_or_fd(int in, int out, void *data)
child_process.in = -1;
child_process.out = out;
- if (start_command(&child_process))
+ if (start_command(&child_process)) {
+ strbuf_release(&cmd);
return error("cannot fork to run external filter '%s'", params->cmd);
+ }
sigchain_push(SIGPIPE, SIG_IGN);