summaryrefslogtreecommitdiff
path: root/unpack-trees.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-11-27 01:17:44 +0700
committerJunio C Hamano <gitster@pobox.com>2010-11-29 13:34:55 -0800
commit0fd0e2417d383168b6a510f78c754298435a89ce (patch)
treedee86e1208ab33e967d9108232f7fb7b89d34800 /unpack-trees.c
parent2977ffbbe134e0fe9bc8aa3643e2d40111643c23 (diff)
downloadgit-0fd0e2417d383168b6a510f78c754298435a89ce.tar.gz
dir.c: add free_excludes()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unpack-trees.c')
-rw-r--r--unpack-trees.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/unpack-trees.c b/unpack-trees.c
index 803445aa7b..4d92412469 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -945,11 +945,7 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
*o->dst_index = o->result;
done:
- for (i = 0;i < el.nr;i++)
- free(el.excludes[i]);
- if (el.excludes)
- free(el.excludes);
-
+ free_excludes(&el);
return ret;
return_failed: