# HG changeset patch # User Christian Brabandt # Date 1453146304 -3600 # Node ID 4d34891e98f4ac19113b38d744ebd9d894bd12b7 # Parent 5953485bada9104ea42638c7a3e79fea94b7f927 commit https://github.com/vim/vim/commit/61ff4dd6a4d47bd32383fe28087be2b37dec53f4 Author: Bram Moolenaar Date: Mon Jan 18 20:30:17 2016 +0100 patch 7.4.1130 Problem: Memory leak in :vimgrep. Solution: Call FreeWild(). (Yegappan Lakshmanan) diff --git a/src/quickfix.c b/src/quickfix.c --- 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 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1130, +/**/ 1129, /**/ 1128,