dblockpool_fini.c 426 B

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