mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.1869: Vim9: memory leak when using add()
Problem: Vim9: memory leak when using add(). Solution: Free the added item.
This commit is contained in:
@@ -2308,6 +2308,7 @@ call_def_function(
|
||||
}
|
||||
if (list_append_tv(l, tv2) == FAIL)
|
||||
goto failed;
|
||||
clear_tv(tv2);
|
||||
--ectx.ec_stack.ga_len;
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user