Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
patch 8.0.1702: leaking memory when autocommands make quickfix list i…
…nvalid

Problem:    Leaking memory when autocommands make a quickfix list invalid.
Solution:   Call FreeWild(). (Yegappan Lakshmanan)
  • Loading branch information
brammool committed Apr 12, 2018
1 parent cccd62d commit ee5b94a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/quickfix.c
Expand Up @@ -4556,7 +4556,10 @@ 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;

if (buf == NULL)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -762,6 +762,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1702,
/**/
1701,
/**/
Expand Down

0 comments on commit ee5b94a

Please sign in to comment.