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;
}
fclose(fd1);
fclose(fd2);
}
}
if (IObuff[0] != NUL)