From: Bram Moolenaar Date: Sun, 17 Mar 2019 13:43:31 +0000 (+0100) Subject: patch 8.1.1012: memory leak with E461 X-Git-Tag: v8.1.1012 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab89d7ab89a1dd7e40cc28df96c71c11b5ab9089;p=vim patch 8.1.1012: memory leak with E461 Problem: Memory leak with E461. Solution: Clear the typeval. (Dominique Pelle, closes #4111) --- diff --git a/src/eval.c b/src/eval.c index 9e1ac6d99..82be5c0b8 100644 --- a/src/eval.c +++ b/src/eval.c @@ -2138,6 +2138,7 @@ get_lval( || &lp->ll_dict->dv_hashtab == get_funccal_args_ht()) { semsg(_(e_illvar), name); + clear_tv(&var1); return NULL; } diff --git a/src/version.c b/src/version.c index 35b40ca3b..91f05b929 100644 --- a/src/version.c +++ b/src/version.c @@ -779,6 +779,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1012, /**/ 1011, /**/