Skip to content

Commit 61ff4dd

Browse files
committed
patch 7.4.1130
Problem: Memory leak in :vimgrep. Solution: Call FreeWild(). (Yegappan Lakshmanan)
1 parent 77324fc commit 61ff4dd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/quickfix.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3465,7 +3465,10 @@ ex_vimgrep(eap)
34653465
dirname_start = alloc_id(MAXPATHL, aid_qf_dirname_start);
34663466
dirname_now = alloc_id(MAXPATHL, aid_qf_dirname_now);
34673467
if (dirname_start == NULL || dirname_now == NULL)
3468+
{
3469+
FreeWild(fcount, fnames);
34683470
goto theend;
3471+
}
34693472

34703473
/* Remember the current directory, because a BufRead autocommand that does
34713474
* ":lcd %:p:h" changes the meaning of short path names. */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
1130,
744746
/**/
745747
1129,
746748
/**/

0 commit comments

Comments
 (0)