0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.2220: Vim9: memory leak when parsing nested parenthesis

Problem:    Vim9: memory leak when parsing nested parenthesis.
Solution:   Clear newargs.
This commit is contained in:
Bram Moolenaar
2020-12-25 22:30:16 +01:00
parent 7e3682068b
commit e5730bdcea
2 changed files with 3 additions and 0 deletions

View File

@@ -574,6 +574,7 @@ get_lambda_tv(
{
if (types_optional)
ga_clear_strings(&argtypes);
ga_clear_strings(&newargs);
return white_error ? FAIL : NOTDONE;
}
*arg = s;