Mercurial > vim
comparison src/quickfix.c @ 7662:4d34891e98f4 v7.4.1130
commit https://github.com/vim/vim/commit/61ff4dd6a4d47bd32383fe28087be2b37dec53f4
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 18 20:30:17 2016 +0100
patch 7.4.1130
Problem: Memory leak in :vimgrep.
Solution: Call FreeWild(). (Yegappan Lakshmanan)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 18 Jan 2016 20:45:04 +0100 |
parents | 9a4c9dccd603 |
children | 075810b0cb6c |
comparison
equal
deleted
inserted
replaced
7661:5953485bada9 | 7662:4d34891e98f4 |
---|---|
3463 } | 3463 } |
3464 | 3464 |
3465 dirname_start = alloc_id(MAXPATHL, aid_qf_dirname_start); | 3465 dirname_start = alloc_id(MAXPATHL, aid_qf_dirname_start); |
3466 dirname_now = alloc_id(MAXPATHL, aid_qf_dirname_now); | 3466 dirname_now = alloc_id(MAXPATHL, aid_qf_dirname_now); |
3467 if (dirname_start == NULL || dirname_now == NULL) | 3467 if (dirname_start == NULL || dirname_now == NULL) |
3468 { | |
3469 FreeWild(fcount, fnames); | |
3468 goto theend; | 3470 goto theend; |
3471 } | |
3469 | 3472 |
3470 /* Remember the current directory, because a BufRead autocommand that does | 3473 /* Remember the current directory, because a BufRead autocommand that does |
3471 * ":lcd %:p:h" changes the meaning of short path names. */ | 3474 * ":lcd %:p:h" changes the meaning of short path names. */ |
3472 mch_dirname(dirname_start, MAXPATHL); | 3475 mch_dirname(dirname_start, MAXPATHL); |
3473 | 3476 |