From: Bram Moolenaar Date: Sat, 27 Jun 2020 15:04:05 +0000 (+0200) Subject: patch 8.2.1070: Vim9: leaking memory when lacking white space in dict X-Git-Tag: v8.2.1070 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab19d495fd880b25a38d58cbeb5b21e4d0ee5835;p=vim 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 748a9917e..be3282d37 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; } diff --git a/src/version.c b/src/version.c index 8cef53ef7..a2fadfed6 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1070, /**/ 1069, /**/