From 2740b2b8539a322bc73f46c45c569503900c5dc1 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 9 Jan 2007 14:07:59 -0800 Subject: [PATCH] builtin-archive: do not free a tree held by the object layer. Found by running "git archive --format=tar HEAD" in Documentation/ directory. It's surprising that nobody has noticed this from the beginning... Signed-off-by: Junio C Hamano --- builtin-archive.c | 1 - 1 file changed, 1 deletion(-) diff --git a/builtin-archive.c b/builtin-archive.c index 391cf4391..32737d316 100644 --- a/builtin-archive.c +++ b/builtin-archive.c @@ -137,7 +137,6 @@ void parse_treeish_arg(const char **argv, struct archiver_args *ar_args, if (err || !S_ISDIR(mode)) die("current working directory is untracked"); - free(tree); tree = parse_tree_indirect(tree_sha1); } ar_args->tree = tree; -- 2.30.2