Patch 8.2.2125 (after 8.2.2122)
Problem: Vim9: leaking memory.
Solution: Free the saved 'cpo' value.
Files: src/scriptfile.c
*** ../vim-8.2.2124/src/scriptfile.c 2020-12-09 17:16:46.708470428 +0100
--- src/scriptfile.c 2020-12-10 20:19:23.890698795 +0100
***************
*** 1492,1498 ****
if (si->sn_save_cpo != NULL)
{
set_option_value((char_u *)"cpo", 0L, si->sn_save_cpo, 0);
! si->sn_save_cpo = NULL;
}
current_sctx = save_current_sctx;
--- 1492,1498 ----
if (si->sn_save_cpo != NULL)
{
set_option_value((char_u *)"cpo", 0L, si->sn_save_cpo, 0);
! CLEAR_POINTER(si->sn_save_cpo);
}
current_sctx = save_current_sctx;
*** ../vim-8.2.2124/src/version.c 2020-12-10 19:43:36.629155311 +0100
--- src/version.c 2020-12-10 20:20:31.474407585 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2125,
/**/
--
No children may attend school with their breath smelling of "wild onions."
[real standing law in West Virginia, United States of America]
/// 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/202012101922.0BAJMAHc2322418%40masaka.moolenaar.net.