Patch 8.2.2835

5 views
Skip to first unread message

Bram Moolenaar

unread,
May 5, 2021, 4:41:43 PM5/5/21
to vim...@googlegroups.com

Patch 8.2.2835 (after 8.2.2834)
Problem: Vim9: leaking memory in :cexpr.
Solution: Also free the command line copy.
Files: src/vim9compile.c


*** ../vim-8.2.2834/src/vim9compile.c 2021-05-05 21:31:36.068018579 +0200
--- src/vim9compile.c 2021-05-05 22:39:26.004648821 +0200
***************
*** 9641,9646 ****
--- 9641,9647 ----
break;

case ISN_CEXPR_CORE:
+ vim_free(isn->isn_arg.cexpr.cexpr_ref->cer_cmdline);
vim_free(isn->isn_arg.cexpr.cexpr_ref);
break;

*** ../vim-8.2.2834/src/version.c 2021-05-05 21:31:36.072018558 +0200
--- src/version.c 2021-05-05 22:40:37.620550773 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2835,
/**/

--
hundred-and-one symptoms of being an internet addict:
233. You start dreaming about web pages...in html.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages