diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-25 22:30:16 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-25 22:30:16 +0100 |
commit | e5730bdcea0d4b574835f94b9813f80316590db9 (patch) | |
tree | 77059be0bb13b4ad8f69185ce6441eb75ecd0e13 | |
parent | 7e3682068bebc53a5d1e9eaaba61bb4fa9c612da (diff) | |
download | vim-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.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
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, |