mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.4236: accessing freed memory
Problem: Accessing freed memory.
Solution: Set the bh_curr pointer to NULL.
166788c657
This commit is contained in:
parent
7114764ffb
commit
175692325b
@ -163,6 +163,7 @@ void free_buff(buffheader_T *buf)
|
||||
xfree(p);
|
||||
}
|
||||
buf->bh_first.b_next = NULL;
|
||||
buf->bh_curr = NULL;
|
||||
}
|
||||
|
||||
/// Return the contents of a buffer as a single string.
|
||||
|
Loading…
Reference in New Issue
Block a user