]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.478 v7.3.478
authorBram Moolenaar <Bram@vim.org>
Fri, 23 Mar 2012 14:37:02 +0000 (15:37 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 23 Mar 2012 14:37:02 +0000 (15:37 +0100)
Problem:    Memory leak using the ':rv!' command when reading dictionary or
            list global variables i.e. with 'viminfo' containing !.
Solution:   Free the typeval. (Dominique Pelle)

src/eval.c
src/version.c

index 13e520b6dbd0fd1de6e7518185f500e4e4ee4c3f..bfb72b1fc0ee78fcaecc923e66756a05400484ec 100644 (file)
@@ -22976,6 +22976,7 @@ read_viminfo_varlist(virp, writing)
                    {
                        vim_free(tv.vval.v_string);
                        tv = *etv;
+                       vim_free(etv);
                    }
                }
 
index 170784c983c5a02a153d98fc9f56c293ea418828..b1b1a524b15c7d382e68df5418ff426a1de5c228 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    478,
 /**/
     477,
 /**/