commit | 6110e79a5872dd6c5529f909d1bd670e3325927b | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Jul 08 19:35:21 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Jul 08 19:35:21 2020 +0200 |
tree | 1fb63ffbf024f240692cd439baa3c65e52d29c46 | |
parent | 6b7a0a8c201bbace7e69fe0709f72b95092193df [diff] [blame] |
patch 8.2.1160: Vim9: memory leak in allocated types Problem: Vim9: memory leak in allocated types. Solution: Free the type pointers.
diff --git a/src/vim9script.c b/src/vim9script.c index 77fe6b0..c191113 100644 --- a/src/vim9script.c +++ b/src/vim9script.c
@@ -126,7 +126,7 @@ } ga_clear(&si->sn_imports); ga_clear(&si->sn_var_vals); - ga_clear(&si->sn_type_list); + clear_type_list(&si->sn_type_list); } /*