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 -- [email protected] -- 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 ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202009182111.08ILBeXJ2766354%40masaka.moolenaar.net.