pickaxe: plug regex/kws leak
commit8e854b00d86070dd463a91bdbc401fb25dc9ddb5
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Thu, 6 Oct 2011 16:23:11 +0000 (6 18:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Oct 2011 22:46:13 +0000 (7 15:46 -0700)
tree66ed8f16c98fae281afebc77c05e3f6f148c8e28
parent2b5f07f16c9e554482ed4a2355a051feabd62848
pickaxe: plug regex/kws leak

With -S... --pickaxe-all, free the regex or the kws 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 <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diffcore-pickaxe.c