summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-11-28 22:12:44 +0100
committerBram Moolenaar <Bram@vim.org>2012-11-28 22:12:44 +0100
commitf135435f8091e648ce1a246258d1318d581e6eb0 (patch)
treebc4fdfdbaf1e0eac00b5b64f5c56bb4dc03086c8
parent2e18a12780b48bf6f1b88aeb5094341d7039a5bc (diff)
downloadvim-git-f135435f8091e648ce1a246258d1318d581e6eb0.tar.gz
updated for version 7.3.742v7.3.742
Problem: Leaking memory when :vimgrep restores the directory. Solution: Free the allocated memory. (Christian Brabandt)
-rw-r--r--src/quickfix.c1
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index 7dbdb9657..2a485f0ad 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -3515,6 +3515,7 @@ restore_start_dir(dirname_start)
ea.cmdidx = (curwin->w_localdir == NULL) ? CMD_cd : CMD_lcd;
ex_cd(&ea);
}
+ vim_free(dirname_now);
}
}
diff --git a/src/version.c b/src/version.c
index a7a656939..4647f960a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -726,6 +726,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 742,
+/**/
741,
/**/
740,