From ca0328354afbf4ec6941cb4312bfc6908ab06d73 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 19 Sep 2007 01:37:50 -0700 Subject: [PATCH] builtin-apply.c: fix a tiny leak introduced during xmemdupz() conversion. Signed-off-by: Junio C Hamano --- builtin-apply.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.26.2