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)
|
if (buf == NULL)
|
||||||
{
|
{
|
||||||
EMSGN(_(e_nobufnr), argvars[1].vval.v_number);
|
EMSGN(_(e_nobufnr), argvars[1].vval.v_number);
|
||||||
|
fclose(fd);
|
||||||
goto errret;
|
goto errret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
207,
|
||||||
/**/
|
/**/
|
||||||
206,
|
206,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user