summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-06-11 15:31:47 +0200
committerBram Moolenaar <Bram@vim.org>2016-06-11 15:31:47 +0200
commit62f8b4e18014b259bcde4a2845c602b0a44a3714 (patch)
tree76fc113d90ca646be2c912fca8e4128ca542a822 /src/ex_getln.c
parent012270936c3c7df3bba45ad2b48938c23a2fd43a (diff)
downloadvim-git-62f8b4e18014b259bcde4a2845c602b0a44a3714.tar.gz
patch 7.4.1918v7.4.1918
Problem: Not enough testing for parsing viminfo lines. Solution: Add test with viminfo lines in bad syntax. Fix memory leak.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 87aed90b0..7f019c663 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -6471,6 +6471,7 @@ merge_history(int type)
vim_free(history[type][i].hisstr);
vim_free(history[type]);
history[type] = new_hist;
+ vim_free(tot_hist);
}
/*