summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-02-20 21:46:05 +0100
committerBram Moolenaar <Bram@vim.org>2018-02-20 21:46:05 +0100
commit3049418f3dbc571463a04d068069f6c5b7a8ccf1 (patch)
treea1dc3b1b90e99df41a30c9eaaa423b78d4c8947b /src
parent81226e03102dd00b7cdce0e00775e1e30462f9a6 (diff)
downloadvim-3049418f3dbc571463a04d068069f6c5b7a8ccf1.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/eval.c2
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c
index d891353f0..98288d6b0 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -8889,6 +8889,8 @@ assert_equalfile(typval_T *argvars)
}
++count;
}
+ fclose(fd1);
+ fclose(fd2);
}
}
if (IObuff[0] != NUL)
diff --git a/src/version.c b/src/version.c
index 52b447e3a..aa236d28f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1529,
+/**/
1528,
/**/
1527,