MCPcopy Index your code
hub / github.com/git/git / cache_tree_free

Function cache_tree_free

cache-tree.c:32–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void cache_tree_free(struct cache_tree **it_p)
33{
34 int i;
35 struct cache_tree *it = *it_p;
36
37 if (!it)
38 return;
39 for (i = 0; i < it->subtree_nr; i++)
40 if (it->down[i]) {
41 cache_tree_free(&it->down[i]->cache_tree);
42 free(it->down[i]);
43 }
44 free(it->down);
45 free(it);
46 *it_p = NULL;
47}
48
49static int subtree_name_cmp(const char *one, int onelen,
50 const char *two, int twolen)

Callers 14

do_invalidate_pathFunction · 0.85
discard_unused_subtreesFunction · 0.85
read_oneFunction · 0.85
prime_cache_treeFunction · 0.85
release_indexFunction · 0.85
overlay_tree_on_indexFunction · 0.85
convert_to_sparseFunction · 0.85
expand_indexFunction · 0.85
cmd__cache_treeFunction · 0.85
cmd__scrap_cache_treeFunction · 0.85
cmd__dump_cache_treeFunction · 0.85

Calls

no outgoing calls

Tested by 3

cmd__cache_treeFunction · 0.68
cmd__scrap_cache_treeFunction · 0.68
cmd__dump_cache_treeFunction · 0.68