mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 14:28:18 +00:00
Fix memory leak in eval7
This commit is contained in:
@@ -4515,7 +4515,7 @@ eval7 (
|
||||
* get_func_tv, but it's needed in handle_subscript() to parse
|
||||
* what follows. So set it here. */
|
||||
if (rettv->v_type == VAR_UNKNOWN && !evaluate && **arg == '(') {
|
||||
rettv->vval.v_string = vim_strsave((char_u *)"");
|
||||
rettv->vval.v_string = (char_u *)"";
|
||||
rettv->v_type = VAR_FUNC;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user