0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.1130

Problem:    Memory leak in :vimgrep.
Solution:   Call FreeWild(). (Yegappan Lakshmanan)
This commit is contained in:
Bram Moolenaar
2016-01-18 20:30:17 +01:00
parent 77324fc9d3
commit 61ff4dd6a4
2 changed files with 5 additions and 0 deletions

View File

@@ -3465,7 +3465,10 @@ ex_vimgrep(eap)
dirname_start = alloc_id(MAXPATHL, aid_qf_dirname_start);
dirname_now = alloc_id(MAXPATHL, aid_qf_dirname_now);
if (dirname_start == NULL || dirname_now == NULL)
{
FreeWild(fcount, fnames);
goto theend;
}
/* Remember the current directory, because a BufRead autocommand that does
* ":lcd %:p:h" changes the meaning of short path names. */

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1130,
/**/
1129,
/**/