patch 8.2.2220: Vim9: memory leak when parsing nested parenthesis
Problem: Vim9: memory leak when parsing nested parenthesis.
Solution: Clear newargs.
diff --git a/src/userfunc.c b/src/userfunc.c
index 2bae9ef..cc41eed 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -574,6 +574,7 @@
{
if (types_optional)
ga_clear_strings(&argtypes);
+ ga_clear_strings(&newargs);
return white_error ? FAIL : NOTDONE;
}
*arg = s;
diff --git a/src/version.c b/src/version.c
index 6178cae..63e5bad 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2220,
+/**/
2219,
/**/
2218,