diff options
author | Rene Scharfe <l.s.r@web.de> | 2017-08-30 19:49:40 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-07 08:49:27 +0900 |
commit | f31f1d395131f84acbee14f42af8f702bca14468 (patch) | |
tree | 59a6a3f3e76fc569ff2077c23db9a0d235c20588 /convert.c | |
parent | f13992917b97766a29ecd05caea7f74431fb30a6 (diff) | |
download | git-f31f1d395131f84acbee14f42af8f702bca14468.tar.gz |
convert: release strbuf on error return in filter_buffer_or_fd()
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'convert.c')
-rw-r--r-- | convert.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |