dblockpool_fini.c 397 B

1234567891011121314151617
  1. #include <stdlib.h>
  2. #include "private.h"
  3. /*--------------------------------------------------------- */
  4. void lub_dblockpool_fini(lub_dblockpool_t * this)
  5. {
  6. lub_dblockpool_chunk_t *chunk;
  7. /* release all the memory used for contexts */
  8. while ((chunk = this->first_chunk)) {
  9. this->first_chunk = chunk->next;
  10. free(chunk);
  11. }
  12. }
  13. /*--------------------------------------------------------- */