comparison src/scriptfile.c @ 19726:ad37a198a708 v8.2.0419

patch 8.2.0419: various memory leaks in Vim9 script code Commit: https://github.com/vim/vim/commit/20431c9dbb592ebe0666bf042af7d2b373107372 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 20 18:39:46 2020 +0100 patch 8.2.0419: various memory leaks in Vim9 script code Problem: Various memory leaks in Vim9 script code. Solution: Fix the leaks. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/5814)
author Bram Moolenaar <Bram@vim.org>
date Fri, 20 Mar 2020 18:45:04 +0100
parents d64f403289db
children fc3cdc819d80
comparison
equal deleted inserted replaced
19725:700b7d225e02 19726:ad37a198a708
1524 1524
1525 // the variables themselves are cleared in evalvars_clear() 1525 // the variables themselves are cleared in evalvars_clear()
1526 vim_free(si->sn_vars); 1526 vim_free(si->sn_vars);
1527 1527
1528 vim_free(si->sn_name); 1528 vim_free(si->sn_name);
1529 free_imports(i);
1529 free_string_option(si->sn_save_cpo); 1530 free_string_option(si->sn_save_cpo);
1530 # ifdef FEAT_PROFILE 1531 # ifdef FEAT_PROFILE
1531 ga_clear(&si->sn_prl_ga); 1532 ga_clear(&si->sn_prl_ga);
1532 # endif 1533 # endif
1533 vim_free(si); 1534 vim_free(si);