summaryrefslogtreecommitdiff
path: root/src/quickfix.c
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 /src/quickfix.c
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)
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c1
1 files changed, 1 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);
}
}