mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -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:
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1869,
|
||||
/**/
|
||||
1868,
|
||||
/**/
|
||||
|
@@ -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