From e653f39f4f93b143ffa379c81cd55deb109fc8d7 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 6 Jun 2019 20:51:11 -0400 Subject: vim-patch:8.0.1702: leaking memory when autocommands make quickfix list invalid Problem: Leaking memory when autocommands make a quickfix list invalid. Solution: Call FreeWild(). (Yegappan Lakshmanan) https://github.com/vim/vim/commit/ee5b94a8ecbaeafa11c7c7c8cf7bef765fbea912 --- src/nvim/quickfix.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 03f909f634..ced0cf0f80 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -4142,6 +4142,7 @@ void ex_vimgrep(exarg_T *eap) // Check whether the quickfix list is still valid. When loading a // buffer above, autocommands might have changed the quickfix list. if (!vgr_qflist_valid(wp, qi, save_qfid, *eap->cmdlinep)) { + FreeWild(fcount, fnames); goto theend; } save_qfid = qi->qf_lists[qi->qf_curlist].qf_id; -- cgit