summaryrefslogtreecommitdiff
path: root/src/scriptfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-10 20:21:24 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-10 20:21:24 +0100
commit8f1bf2ef785e48a4ca08e014b7713fdee2824631 (patch)
tree7c4fbaf3a6e68b0c9349ea3a3e552b6c20c79a38 /src/scriptfile.c
parent08597875b2a1e7d118b0346c652a96e7527e7d8b (diff)
downloadvim-git-8f1bf2ef785e48a4ca08e014b7713fdee2824631.tar.gz
patch 8.2.2125: Vim9: leaking memoryv8.2.2125
Problem: Vim9: leaking memory. Solution: Free the saved 'cpo' value.
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r--src/scriptfile.c2
1 files changed, 1 insertions, 1 deletions
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;