зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
f13992917b
Коммит
f31f1d3951
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче