From: Bram Moolenaar Date: Mon, 18 Jan 2016 19:30:17 +0000 (+0100) Subject: patch 7.4.1130 X-Git-Tag: v7.4.1130 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61ff4dd6a4d47bd32383fe28087be2b37dec53f4;p=vim patch 7.4.1130 Problem: Memory leak in :vimgrep. Solution: Call FreeWild(). (Yegappan Lakshmanan) --- diff --git a/src/quickfix.c b/src/quickfix.c index 003d0075d..21ac1c034 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -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. */ diff --git a/src/version.c b/src/version.c index ed7eddc35..444d4b817 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1130, /**/ 1129, /**/