From: Bram Moolenaar Date: Thu, 10 Dec 2020 19:21:24 +0000 (+0100) Subject: patch 8.2.2125: Vim9: leaking memory X-Git-Tag: v8.2.2125 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f1bf2ef785e48a4ca08e014b7713fdee2824631;p=thirdparty%2Fvim.git 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 index bf4cbc0ea6..aebd98dc77 100644 --- 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 index ee6be8a768..0a98c78ad3 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2125, /**/ 2124, /**/