X-Git-Url: https://rtime.felk.cvut.cz/gitweb/git.git/blobdiff_plain/f78eeeaf55a4f60a05d3e6452f29a2214c29b6fd..c7f874e405a52f93d486094034d886fc140961c9:/run-command.c diff --git a/run-command.c b/run-command.c index eb5c57562..c7793f50f 100644 --- a/run-command.c +++ b/run-command.c @@ -383,6 +383,8 @@ fail_pipe: close(cmd->out); if (need_err) close_pair(fderr); + else if (cmd->err) + close(cmd->err); errno = failed_errno; return -1; }