mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00: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:

committed by
zeertzjq

parent
7114764ffb
commit
175692325b
@@ -163,6 +163,7 @@ void free_buff(buffheader_T *buf)
|
|||||||
xfree(p);
|
xfree(p);
|
||||||
}
|
}
|
||||||
buf->bh_first.b_next = NULL;
|
buf->bh_first.b_next = NULL;
|
||||||
|
buf->bh_curr = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return the contents of a buffer as a single string.
|
/// Return the contents of a buffer as a single string.
|
||||||
|
Reference in New Issue
Block a user