From 8f1bf2ef785e48a4ca08e014b7713fdee2824631 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 10 Dec 2020 20:21:24 +0100 Subject: patch 8.2.2125: Vim9: leaking memory Problem: Vim9: leaking memory. Solution: Free the saved 'cpo' value. --- src/scriptfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scriptfile.c') diff --git a/src/scriptfile.c b/src/scriptfile.c index bf4cbc0ea..aebd98dc7 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; -- cgit v1.2.1