From e5730bdcea0d4b574835f94b9813f80316590db9 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 25 Dec 2020 22:30:16 +0100 Subject: [PATCH] patch 8.2.2220: Vim9: memory leak when parsing nested parenthesis Problem: Vim9: memory leak when parsing nested parenthesis. Solution: Clear newargs. --- src/userfunc.c | 1 + src/version.c | 2 ++ 2 files changed, 3 insertions(+) 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 @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2220, /**/ 2219, /**/ -- 2.40.0