From eb3888a322304434848ca2f6b1b12b821c9788f4 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 20 Sep 2019 21:58:56 -0400 Subject: vim-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. https://github.com/vim/vim/commit/3049418f3dbc571463a04d068069f6c5b7a8ccf1 --- src/nvim/eval.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 04204e45d0..e409d57bfd 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -7004,6 +7004,8 @@ static int assert_equalfile(typval_T *argvars) break; } } + fclose(fd1); + fclose(fd2); } } if (IObuff[0] != NUL) { -- cgit