aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-09-20 21:58:56 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-09-21 08:43:08 -0400
commiteb3888a322304434848ca2f6b1b12b821c9788f4 (patch)
tree0af5d11242332f895faeb88109c0261d88e77420
parent2a7ffc6567097232f5e12b6d3dc6483748eaad0a (diff)
downloadrneovim-eb3888a322304434848ca2f6b1b12b821c9788f4.tar.gz
rneovim-eb3888a322304434848ca2f6b1b12b821c9788f4.tar.bz2
rneovim-eb3888a322304434848ca2f6b1b12b821c9788f4.zip
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
-rw-r--r--src/nvim/eval.c2
1 files changed, 2 insertions, 0 deletions
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) {