Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
add tests for various blame formats
[gitweb.git]
/
cache-tree.c
diff --git
a/cache-tree.c
b/cache-tree.c
index c60cf9140dd18254886ea14de763738630f95973..f755590da827234830d8b4359720cfbfd87a3dea 100644
(file)
--- a/
cache-tree.c
+++ b/
cache-tree.c
@@
-22,8
+22,10
@@
void cache_tree_free(struct cache_tree **it_p)
if (!it)
return;
for (i = 0; i < it->subtree_nr; i++)
- if (it->down[i])
+ if (it->down[i])
{
cache_tree_free(&it->down[i]->cache_tree);
+ free(it->down[i]);
+ }
free(it->down);
free(it);
*it_p = NULL;