summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 182af83)
raw | patch | inline | side by side (parent: 182af83)
author | Junio C Hamano <gitster@pobox.com> | |
Wed, 19 Sep 2007 08:37:50 +0000 (01:37 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 19 Sep 2007 08:54:24 +0000 (01:54 -0700) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-apply.c | patch | blob | history |
diff --git a/builtin-apply.c b/builtin-apply.c
index 512c9b61429f8344402bbf1120c4e90ccf2e17dd..db337f1aca48d7f7ec8b5e3c4c9230621d346d81 100644 (file)
--- a/builtin-apply.c
+++ b/builtin-apply.c
int deflen = strlen(def);
if (deflen < len && !strncmp(start, def, deflen))
return def;
+ free(def);
}
return xmemdupz(start, len);