MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_allocator_free

Function acl_allocator_free

lib_acl/src/stdlib/memory/acl_allocator.c:168–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void acl_allocator_free(ACL_ALLOCATOR *allocator)
169{
170 ACL_MEM_POOL *pool;
171
172 while (1) {
173 pool = acl_stack_pop(allocator->pools);
174 if (pool == NULL)
175 break;
176 allocator->pool_destroy_fn(pool);
177 }
178
179 acl_stack_destroy(allocator->pools, NULL);
180 acl_default_free(__FILE__, __LINE__, allocator);
181}
182
183ACL_MEM_POOL *acl_allocator_pool_add(ACL_ALLOCATOR *allocator,
184 const char *label, size_t obj_size, acl_mem_type type,

Callers 1

acl_mempool_closeFunction · 0.85

Calls 2

acl_stack_popFunction · 0.85
acl_stack_destroyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…