summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-09-19 01:37:50 -0700
committerJunio C Hamano <gitster@pobox.com>2007-09-19 01:54:24 -0700
commitca0328354afbf4ec6941cb4312bfc6908ab06d73 (patch)
tree5ed8e1d5439b63551693fba5c279010ad44084ad
parent182af8343c307436bb5364309aa6d4d46fa5911d (diff)
downloadgit-ca0328354afbf4ec6941cb4312bfc6908ab06d73.tar.gz
builtin-apply.c: fix a tiny leak introduced during xmemdupz() conversion.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin-apply.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-apply.c b/builtin-apply.c
index 512c9b6142..db337f1aca 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);