diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-27 17:04:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-27 17:04:05 +0200 |
commit | ab19d495fd880b25a38d58cbeb5b21e4d0ee5835 (patch) | |
tree | 73512e53f773f7eff51eac22dd445aeb7514a750 /src/dict.c | |
parent | e6e031739c9d0c4140e371031b58a249db0eb572 (diff) |
patch 8.2.1070: Vim9: leaking memory when lacking white space in dictv8.2.1070
Problem: Vim9: leaking memory when lacking white space in dict.
Solution: Clear the typval.
Diffstat (limited to 'src/dict.c')
-rw-r--r-- | src/dict.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dict.c b/src/dict.c index 748a9917eb..be3282d37d 100644 --- a/src/dict.c +++ b/src/dict.c @@ -862,6 +862,7 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal) if (vim9script && (*arg)[1] != NUL && !VIM_ISWHITE((*arg)[1])) { semsg(_(e_white_after), ":"); + clear_tv(&tvkey); goto failret; } |