forked from aniani/vim
patch 8.0.0207: leaking file descriptor when system() fails
Problem: Leaking file descriptor when system() cannot find the buffer. (Coverity) Solution: Close the file descriptor. (Dominique Pelle, closes #1398)
This commit is contained in:
@@ -11832,6 +11832,7 @@ get_cmd_output_as_rettv(
|
||||
if (buf == NULL)
|
||||
{
|
||||
EMSGN(_(e_nobufnr), argvars[1].vval.v_number);
|
||||
fclose(fd);
|
||||
goto errret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user