]> granicus.if.org Git - vim/commitdiff
patch 8.1.1012: memory leak with E461 v8.1.1012
authorBram Moolenaar <Bram@vim.org>
Sun, 17 Mar 2019 13:43:31 +0000 (14:43 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 17 Mar 2019 13:43:31 +0000 (14:43 +0100)
Problem:    Memory leak with E461.
Solution:   Clear the typeval. (Dominique Pelle, closes #4111)

src/eval.c
src/version.c

index 9e1ac6d99363d8e6ba95162862eecbeb8c81cb2d..82be5c0b8e6e4de426c9368db6d28c385ca88310 100644 (file)
@@ -2138,6 +2138,7 @@ get_lval(
                         || &lp->ll_dict->dv_hashtab == get_funccal_args_ht())
                {
                    semsg(_(e_illvar), name);
+                   clear_tv(&var1);
                    return NULL;
                }
 
index 35b40ca3b3290c72a8930c877f3df9479a26a8a7..91f05b929546ede333ac44cd480343db39c5341d 100644 (file)
@@ -779,6 +779,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1012,
 /**/
     1011,
 /**/