forked from aniani/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.
This commit is contained in:
@@ -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]))
|
if (vim9script && (*arg)[1] != NUL && !VIM_ISWHITE((*arg)[1]))
|
||||||
{
|
{
|
||||||
semsg(_(e_white_after), ":");
|
semsg(_(e_white_after), ":");
|
||||||
|
clear_tv(&tvkey);
|
||||||
goto failret;
|
goto failret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1070,
|
||||||
/**/
|
/**/
|
||||||
1069,
|
1069,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user