summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2012-03-23 15:37:02 +0100
committerBram Moolenaar <bram@vim.org>2012-03-23 15:37:02 +0100
commit863354fb75d1284769adc9f04e89f33a45774a3f (patch)
treee1908a5d110a664162f4b1cc2d642e8f125f87e3
parenta13c9a8f436eb662d8d0f1914fec1e4156da2707 (diff)
downloadvim-863354fb75d1284769adc9f04e89f33a45774a3f.tar.gz
updated for version 7.3.478v7.3.478v7-3-478
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)
-rw-r--r--src/eval.c1
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c
index 13e520b6..bfb72b1f 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -22976,6 +22976,7 @@ read_viminfo_varlist(virp, writing)
{
vim_free(tv.vval.v_string);
tv = *etv;
+ vim_free(etv);
}
}
diff --git a/src/version.c b/src/version.c
index 170784c9..b1b1a524 100644
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 478,
+/**/
477,
/**/
476,