mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.0768: Vim9: memory leak in script test
Problem: Vim9: memory leak in script test. Solution: Clear typval before giving an error message.
This commit is contained in:
@@ -1169,12 +1169,12 @@ call_def_function(
|
||||
n = tv->vval.v_number;
|
||||
msg = set_option_value(iptr->isn_arg.storeopt.so_name,
|
||||
n, s, iptr->isn_arg.storeopt.so_flags);
|
||||
clear_tv(tv);
|
||||
if (msg != NULL)
|
||||
{
|
||||
emsg(_(msg));
|
||||
goto failed;
|
||||
}
|
||||
clear_tv(tv);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user