# HG changeset patch # User Bram Moolenaar # Date 1552830306 -3600 # Node ID 93b08b92a049467fdb93c9d422df41d114008ece # Parent 9a9fad1ad197a9f6163ef2122f3aa6aa2214856a patch 8.1.1012: memory leak with E461 commit https://github.com/vim/vim/commit/ab89d7ab89a1dd7e40cc28df96c71c11b5ab9089 Author: Bram Moolenaar Date: Sun Mar 17 14:43:31 2019 +0100 patch 8.1.1012: memory leak with E461 Problem: Memory leak with E461. Solution: Clear the typeval. (Dominique Pelle, closes https://github.com/vim/vim/issues/4111) diff --git a/src/eval.c b/src/eval.c --- 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 --- a/src/version.c +++ b/src/version.c @@ -780,6 +780,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1012, +/**/ 1011, /**/ 1010,