Deallocate a memory pool
void mempool_destroy(mempool_t * pool);
pool
pointer to the memory pool which was allocated via mempool_create.
Free all reserved elements in pool and pool itself. This function only sleeps if the free_fn function sleeps.