1
0

partition_destroy_local_heap.c 460 B

12345678910111213141516171819
  1. /*
  2. * partition_destroy_local_heap.c
  3. */
  4. #include <stdlib.h>
  5. #include "private.h"
  6. /*-------------------------------------------------------- */
  7. void
  8. lub_partition_destroy_local_heap(lub_partition_t * this,
  9. lub_heap_t * local_heap)
  10. {
  11. lub_heap_destroy(local_heap);
  12. /* now release the memory */
  13. lub_partition_global_realloc(this, (char **)&local_heap, 0,
  14. LUB_HEAP_ALIGN_NATIVE);
  15. }
  16. /*-------------------------------------------------------- */