To: vim_dev@googlegroups.com Subject: Patch 8.2.1709 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1709 Problem: Vim9: memory leak when using multiple closures. Solution: Free the partial. Files: src/vim9execute.c *** ../vim-8.2.1708/src/vim9execute.c 2020-09-18 21:25:28.742986212 +0200 --- src/vim9execute.c 2020-09-18 23:09:30.543154821 +0200 *************** *** 1830,1835 **** --- 1830,1836 ---- // TODO: use a garray_T on ectx. SOURCING_LNUM = iptr->isn_lnum; emsg("Multiple closures not supported yet"); + vim_free(pt); goto failed; } tv->v_type = VAR_PARTIAL; *** ../vim-8.2.1708/src/version.c 2020-09-18 22:41:56.608975426 +0200 --- src/version.c 2020-09-18 23:11:02.066556797 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 1709, /**/ -- "I've been teaching myself to play the piano for about 5 years and now write most of my songs on it, mainly because I can never find any paper." Jeff Lynne, ELO's greatest hits /// 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 ///