mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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)
This commit is contained in:
@@ -4556,7 +4556,10 @@ ex_vimgrep(exarg_T *eap)
|
|||||||
/* Check whether the quickfix list is still valid. When loading a
|
/* Check whether the quickfix list is still valid. When loading a
|
||||||
* buffer above, autocommands might have changed the quickfix list. */
|
* buffer above, autocommands might have changed the quickfix list. */
|
||||||
if (!vgr_qflist_valid(wp, qi, save_qfid, *eap->cmdlinep))
|
if (!vgr_qflist_valid(wp, qi, save_qfid, *eap->cmdlinep))
|
||||||
|
{
|
||||||
|
FreeWild(fcount, fnames);
|
||||||
goto theend;
|
goto theend;
|
||||||
|
}
|
||||||
save_qfid = qi->qf_lists[qi->qf_curlist].qf_id;
|
save_qfid = qi->qf_lists[qi->qf_curlist].qf_id;
|
||||||
|
|
||||||
if (buf == NULL)
|
if (buf == NULL)
|
||||||
|
@@ -762,6 +762,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1702,
|
||||||
/**/
|
/**/
|
||||||
1701,
|
1701,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user