commit | 8f1bf2ef785e48a4ca08e014b7713fdee2824631 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Dec 10 20:21:24 2020 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Dec 10 20:21:24 2020 +0100 |
tree | 7c4fbaf3a6e68b0c9349ea3a3e552b6c20c79a38 | |
parent | 08597875b2a1e7d118b0346c652a96e7527e7d8b [diff] [blame] |
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 bf4cbc0..aebd98d 100644 --- a/src/scriptfile.c +++ b/src/scriptfile.c
@@ -1492,7 +1492,7 @@ 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;