commit | ab19d495fd880b25a38d58cbeb5b21e4d0ee5835 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Jun 27 17:04:05 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Jun 27 17:04:05 2020 +0200 |
tree | 73512e53f773f7eff51eac22dd445aeb7514a750 | |
parent | e6e031739c9d0c4140e371031b58a249db0eb572 [diff] [blame] |
patch 8.2.1070: Vim9: leaking memory when lacking white space in dict Problem: Vim9: leaking memory when lacking white space in dict. Solution: Clear the typval.
diff --git a/src/dict.c b/src/dict.c index 748a991..be3282d 100644 --- a/src/dict.c +++ b/src/dict.c
@@ -862,6 +862,7 @@ if (vim9script && (*arg)[1] != NUL && !VIM_ISWHITE((*arg)[1])) { semsg(_(e_white_after), ":"); + clear_tv(&tvkey); goto failret; }