@matheusbsbs / matheus-bagliano / commits / 2740b2b853
Fork 0

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 <junkio@cox.net>

Junio C Hamano committed Jan 9, 2007 at 14:07 UTC 2740b2b8539a322bc73f46c45c569503900c5dc1
1 file changed -1
builtin-archive.c
-1
@@ -137,7 +137,6 @@ void parse_treeish_arg(const char **argv, struct archiver_args *ar_args,
137 if (err || !S_ISDIR(mode))
138 die("current working directory is untracked");
139
140 - free(tree);
140 tree = parse_tree_indirect(tree_sha1);
141 }
142 ar_args->tree = tree;