mirror of
https://github.com/git/git.git
synced 2024-11-18 16:04:17 +01:00
Merge branch 'maint'
* maint: revert: Fix trivial comment style issue cache_tree_free: Fix small memory leak Conflicts: builtin/revert.c
This commit is contained in:
commit
7505ae272b
@ -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…
Reference in New Issue
Block a user