changeset 23354:611e19cd237d v8.2.2220

patch 8.2.2220: Vim9: memory leak when parsing nested parenthesis Commit: https://github.com/vim/vim/commit/e5730bdcea0d4b574835f94b9813f80316590db9 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 25 22:30:16 2020 +0100 patch 8.2.2220: Vim9: memory leak when parsing nested parenthesis Problem: Vim9: memory leak when parsing nested parenthesis. Solution: Clear newargs.
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Dec 2020 22:45:03 +0100
parents 8643a226458d
children b63398c0d29e
files src/userfunc.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -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;
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2220,
+/**/
     2219,
 /**/
     2218,