mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 14:28:18 +00:00
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.
3049418f3d
This commit is contained in:
@@ -7004,6 +7004,8 @@ static int assert_equalfile(typval_T *argvars)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
fclose(fd1);
|
||||||
|
fclose(fd2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (IObuff[0] != NUL) {
|
if (IObuff[0] != NUL) {
|
||||||
|
Reference in New Issue
Block a user