Skip to content

Commit 8f1bf2e

Browse files
committed
patch 8.2.2125: Vim9: leaking memory
Problem: Vim9: leaking memory. Solution: Free the saved 'cpo' value.
1 parent 0859787 commit 8f1bf2e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/scriptfile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ do_source(
14921492
if (si->sn_save_cpo != NULL)
14931493
{
14941494
set_option_value((char_u *)"cpo", 0L, si->sn_save_cpo, 0);
1495-
si->sn_save_cpo = NULL;
1495+
CLEAR_POINTER(si->sn_save_cpo);
14961496
}
14971497

14981498
current_sctx = save_current_sctx;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2125,
753755
/**/
754756
2124,
755757
/**/

0 commit comments

Comments
 (0)