mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
readfile(): Fix read-after-free.
References https://github.com/neovim/neovim/pull/5956#pullrequestreview-17812620 Helped-by: oni-link <knil.ino@gmail.com>
This commit is contained in:
@@ -1882,6 +1882,7 @@ failed:
|
|||||||
|
|
||||||
xfree(keep_msg);
|
xfree(keep_msg);
|
||||||
keep_msg = NULL;
|
keep_msg = NULL;
|
||||||
|
p = NULL;
|
||||||
msg_scrolled_ign = TRUE;
|
msg_scrolled_ign = TRUE;
|
||||||
|
|
||||||
if (!read_stdin && !read_buffer) {
|
if (!read_stdin && !read_buffer) {
|
||||||
|
Reference in New Issue
Block a user