From: Junio C Hamano Date: Wed, 19 Sep 2007 08:37:50 +0000 (-0700) Subject: builtin-apply.c: fix a tiny leak introduced during xmemdupz() conversion. X-Git-Tag: v1.5.4-rc0~295^2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ca0328354afbf4ec6941cb4312bfc6908ab06d73;p=git.git builtin-apply.c: fix a tiny leak introduced during xmemdupz() conversion. Signed-off-by: Junio C Hamano --- diff --git a/builtin-apply.c b/builtin-apply.c index 512c9b614..db337f1ac 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -291,6 +291,7 @@ static char *find_name(const char *line, char *def, int p_value, int terminate) int deflen = strlen(def); if (deflen < len && !strncmp(start, def, deflen)) return def; + free(def); } return xmemdupz(start, len);