summaryrefslogtreecommitdiff
path: root/src/scriptfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-20 18:39:46 +0100
committerBram Moolenaar <Bram@vim.org>2020-03-20 18:39:46 +0100
commit20431c9dbb592ebe0666bf042af7d2b373107372 (patch)
tree6cff691f11db2432b46a3c979ba23f95e0ca41dc /src/scriptfile.c
parent8b633135106dda8605463b780573c45b00c22afe (diff)
downloadvim-git-20431c9dbb592ebe0666bf042af7d2b373107372.tar.gz
patch 8.2.0419: various memory leaks in Vim9 script codev8.2.0419
Problem: Various memory leaks in Vim9 script code. Solution: Fix the leaks. (Ozaki Kiichi, closes #5814)
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r--src/scriptfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c
index 838d5f642..55b1ddd26 100644
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -1526,6 +1526,7 @@ free_scriptnames(void)
vim_free(si->sn_vars);
vim_free(si->sn_name);
+ free_imports(i);
free_string_option(si->sn_save_cpo);
# ifdef FEAT_PROFILE
ga_clear(&si->sn_prl_ga);