summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-25 22:30:16 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-25 22:30:16 +0100
commite5730bdcea0d4b574835f94b9813f80316590db9 (patch)
tree77059be0bb13b4ad8f69185ce6441eb75ecd0e13
parent7e3682068bebc53a5d1e9eaaba61bb4fa9c612da (diff)
downloadvim-git-e5730bdcea0d4b574835f94b9813f80316590db9.tar.gz
patch 8.2.2220: Vim9: memory leak when parsing nested parenthesisv8.2.2220
Problem: Vim9: memory leak when parsing nested parenthesis. Solution: Clear newargs.
-rw-r--r--src/userfunc.c1
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/userfunc.c b/src/userfunc.c
index 2bae9ef90..cc41eed7c 100644
--- 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;
diff --git a/src/version.c b/src/version.c
index 6178cae1b..63e5badbc 100644
--- 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,