mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.1709: Vim9: memory leak when using multiple closures
Problem: Vim9: memory leak when using multiple closures. Solution: Free the partial.
This commit is contained in:
@@ -1830,6 +1830,7 @@ call_def_function(
|
||||
// TODO: use a garray_T on ectx.
|
||||
SOURCING_LNUM = iptr->isn_lnum;
|
||||
emsg("Multiple closures not supported yet");
|
||||
vim_free(pt);
|
||||
goto failed;
|
||||
}
|
||||
tv->v_type = VAR_PARTIAL;
|
||||
|
Reference in New Issue
Block a user