changeset 13310:52fbfc72004d v8.0.1529

patch 8.0.1529: assert_equalfile() does not close file descriptors commit https://github.com/vim/vim/commit/3049418f3dbc571463a04d068069f6c5b7a8ccf1 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 20 21:46:05 2018 +0100 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.
author Christian Brabandt <cb@256bit.org>
date Tue, 20 Feb 2018 22:00:05 +0100
parents c548e4cb6bad
children 7d14de7ad1ff
files src/eval.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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,