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

Function alloc_state_free_and_null

alloc.c:44–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void alloc_state_free_and_null(struct alloc_state **s_)
45{
46 struct alloc_state *s = *s_;
47
48 if (!s)
49 return;
50
51 while (s->slab_nr > 0) {
52 s->slab_nr--;
53 free(s->slabs[s->slab_nr]);
54 }
55
56 FREE_AND_NULL(s->slabs);
57 FREE_AND_NULL(*s_);
58}
59
60static inline void *alloc_node(struct alloc_state *s, size_t node_size)
61{

Callers 1

parsed_object_pool_clearFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected