From: René Scharfe Date: Thu, 6 Oct 2011 16:14:55 +0000 (+0200) Subject: pickaxe: plug regex leak X-Git-Tag: v1.7.8-rc0~38^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/2b5f07f16c9e554482ed4a2355a051feabd62848?hp=2b5f07f16c9e554482ed4a2355a051feabd62848 pickaxe: plug regex leak With -G... --pickaxe-all, free the regex before returning even if we found a match. Also get rid of the variable has_changes, as we can simply break out of the loop. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano ---