0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.0.1529: assert_equalfile() does not close file descriptors

Problem:    Assert_equalfile() does not close file descriptors. (Coverity)
Solution:   Close the file descriptors.
This commit is contained in:
Bram Moolenaar
2018-02-20 21:46:05 +01:00
parent 81226e0310
commit 3049418f3d
2 changed files with 4 additions and 0 deletions

View File

@@ -8889,6 +8889,8 @@ assert_equalfile(typval_T *argvars)
} }
++count; ++count;
} }
fclose(fd1);
fclose(fd2);
} }
} }
if (IObuff[0] != NUL) if (IObuff[0] != NUL)

View File

@@ -771,6 +771,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 */
/**/
1529,
/**/ /**/
1528, 1528,
/**/ /**/