summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3d59405)
raw | patch | inline | side by side (parent: 3d59405)
author | Junio C Hamano <gitster@pobox.com> | |
Mon, 10 Sep 2007 07:14:38 +0000 (00:14 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 10 Sep 2007 07:14:38 +0000 (00:14 -0700) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-archive.c | patch | blob | history |
diff --git a/builtin-archive.c b/builtin-archive.c
index e221f115f9f1a214d5507777d191a81850835385..a90c65ce54a1c3e415b46465a2b4c7bfdffca9ff 100644 (file)
--- a/builtin-archive.c
+++ b/builtin-archive.c
formatted_len = format_commit_message(commit, fmt, &formatted,
&allocated);
+ free(fmt);
result = xrealloc(result, result_len + a_len + formatted_len);
memcpy(result + result_len, a, a_len);
memcpy(result + result_len + a_len, formatted, formatted_len);