Patch 8.2.2125

5 views
Skip to first unread message

Bram Moolenaar

unread,
Dec 10, 2020, 2:22:22 PM12/10/20
to vim...@googlegroups.com

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 -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages