1
0

partition_destroy_local_heap.c 488 B

1234567891011121314151617
  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,LUB_HEAP_ALIGN_NATIVE);
  14. }
  15. /*-------------------------------------------------------- */