1
0
forked from aniani/vim

patch 8.2.2125: Vim9: leaking memory

Problem:    Vim9: leaking memory.
Solution:   Free the saved 'cpo' value.
This commit is contained in:
Bram Moolenaar
2020-12-10 20:21:24 +01:00
parent 08597875b2
commit 8f1bf2ef78
2 changed files with 3 additions and 1 deletions

View File

@@ -1492,7 +1492,7 @@ almosttheend:
if (si->sn_save_cpo != NULL)
{
set_option_value((char_u *)"cpo", 0L, si->sn_save_cpo, 0);
si->sn_save_cpo = NULL;
CLEAR_POINTER(si->sn_save_cpo);
}
current_sctx = save_current_sctx;

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2125,
/**/
2124,
/**/