merge-recursive: do not use on-file index when not needed.
[gitweb.git] / builtin-archive.c
index 391cf43911a16ec49862c18b7dd4f1f094d49de8..32737d31621e8d1a900d944f97fcaae43d56a12e 100644 (file)
@@ -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;