To: vim_dev@googlegroups.com Subject: Patch 8.2.2220 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2220 Problem: Vim9: memory leak when parsing nested parenthesis. Solution: Clear newargs. Files: src/userfunc.c *** ../vim-8.2.2219/src/userfunc.c 2020-12-25 16:11:50.096319934 +0100 --- src/userfunc.c 2020-12-25 22:29:14.648334685 +0100 *************** *** 574,579 **** --- 574,580 ---- { if (types_optional) ga_clear_strings(&argtypes); + ga_clear_strings(&newargs); return white_error ? FAIL : NOTDONE; } *arg = s; *** ../vim-8.2.2219/src/version.c 2020-12-25 21:56:53.412944936 +0100 --- src/version.c 2020-12-25 22:28:01.428642771 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2220, /**/ -- How To Keep A Healthy Level Of Insanity: 15. Five days in advance, tell your friends you can't attend their party because you're not in the mood. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///