diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-11-28 22:12:44 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-11-28 22:12:44 +0100 |
commit | f135435f8091e648ce1a246258d1318d581e6eb0 (patch) | |
tree | bc4fdfdbaf1e0eac00b5b64f5c56bb4dc03086c8 | |
parent | 2e18a12780b48bf6f1b88aeb5094341d7039a5bc (diff) | |
download | vim-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.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
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, |