0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.1012: memory leak with E461

Problem:    Memory leak with E461.
Solution:   Clear the typeval. (Dominique Pelle, closes #4111)
This commit is contained in:
Bram Moolenaar
2019-03-17 14:43:31 +01:00
parent 2ba4238818
commit ab89d7ab89
2 changed files with 3 additions and 0 deletions

View File

@@ -2138,6 +2138,7 @@ get_lval(
|| &lp->ll_dict->dv_hashtab == get_funccal_args_ht()) || &lp->ll_dict->dv_hashtab == get_funccal_args_ht())
{ {
semsg(_(e_illvar), name); semsg(_(e_illvar), name);
clear_tv(&var1);
return NULL; return NULL;
} }

View File

@@ -779,6 +779,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 */
/**/
1012,
/**/ /**/
1011, 1011,
/**/ /**/