# HG changeset patch # User Bram Moolenaar # Date 1608932703 -3600 # Node ID 611e19cd237d5a9e3ba50ae8f723d5fee538abed # Parent 8643a226458d028beb69249d053e039c5e694535 patch 8.2.2220: Vim9: memory leak when parsing nested parenthesis Commit: https://github.com/vim/vim/commit/e5730bdcea0d4b574835f94b9813f80316590db9 Author: Bram Moolenaar 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. diff --git a/src/userfunc.c b/src/userfunc.c --- 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 --- 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,