mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
497db001df
commit
c86caf7e41
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user