use calloc in pool_create
assert pool != NULL in pool_destroy