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:
@@ -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;
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user