MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / ObjectPool_Free

Function ObjectPool_Free

src/util/object_pool/object_pool.c:132–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void ObjectPool_Free(ObjectPool *pool) {
133 for(uint i = 0; i < pool->blockCount; i++) Block_Free(pool->blocks[i]);
134
135 rm_free(pool->blocks);
136 array_free(pool->deletedIdx);
137 rm_free(pool);
138}
139

Callers 4

test_objectPoolNewFunction · 0.85
test_objectPoolAddItemFunction · 0.85

Calls 3

Block_FreeFunction · 0.85
rm_freeFunction · 0.85
array_freeFunction · 0.85

Tested by 3

test_objectPoolNewFunction · 0.68
test_objectPoolAddItemFunction · 0.68