Browse Source

Merge branch 'maint'

* maint:
  revert: Fix trivial comment style issue
  cache_tree_free: Fix small memory leak

Conflicts:
	builtin/revert.c
maint
Junio C Hamano 14 years ago
parent
commit
7505ae272b
  1. 4
      cache-tree.c

4
cache-tree.c

@ -22,8 +22,10 @@ void cache_tree_free(struct cache_tree **it_p) @@ -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;

Loading…
Cancel
Save