0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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) if (si->sn_save_cpo != NULL)
{ {
set_option_value((char_u *)"cpo", 0L, si->sn_save_cpo, 0); 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; current_sctx = save_current_sctx;

View File

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