| 166 | } |
| 167 | |
| 168 | void 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 | |
| 183 | ACL_MEM_POOL *acl_allocator_pool_add(ACL_ALLOCATOR *allocator, |
| 184 | const char *label, size_t obj_size, acl_mem_type type, |
no test coverage detected
searching dependent graphs…