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:
@@ -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. */
|
||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1130,
|
||||
/**/
|
||||
1129,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user