commit | e5730bdcea0d4b574835f94b9813f80316590db9 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Dec 25 22:30:16 2020 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Dec 25 22:30:16 2020 +0100 |
tree | 77059be0bb13b4ad8f69185ce6441eb75ecd0e13 | |
parent | 7e3682068bebc53a5d1e9eaaba61bb4fa9c612da [diff] [blame] |
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 index 2bae9ef..cc41eed 100644 --- a/src/userfunc.c +++ b/src/userfunc.c
@@ -574,6 +574,7 @@ { if (types_optional) ga_clear_strings(&argtypes); + ga_clear_strings(&newargs); return white_error ? FAIL : NOTDONE; } *arg = s;