# HG changeset patch # User Bram Moolenaar # Date 1607628604 -3600 # Node ID 59635213999a948bed02c24528503ad5a0f1b813 # Parent 4dcb8c79c9102745ca28145c4d89cb967a8124a3 patch 8.2.2125: Vim9: leaking memory Commit: https://github.com/vim/vim/commit/8f1bf2ef785e48a4ca08e014b7713fdee2824631 Author: Bram Moolenaar Date: Thu Dec 10 20:21:24 2020 +0100 patch 8.2.2125: Vim9: leaking memory Problem: Vim9: leaking memory. Solution: Free the saved 'cpo' value. diff --git a/src/scriptfile.c b/src/scriptfile.c --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2125, +/**/ 2124, /**/ 2123,