mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
memory: Add free
wrapper and refactor project to use it
We already use wrappers for allocation, the new `xfree` function is the equivalent for deallocation and provides a way to fully replace the malloc implementation used by Neovim.
This commit is contained in:
@@ -85,7 +85,7 @@ void vim_feedkeys(String keys, String mode, Boolean escape_csi)
|
||||
insert ? 0 : typebuf.tb_len, !typed, false);
|
||||
|
||||
if (escape_csi) {
|
||||
free(keys_esc);
|
||||
xfree(keys_esc);
|
||||
}
|
||||
|
||||
if (vgetc_busy)
|
||||
|
Reference in New Issue
Block a user