partition_enable_leak_detection.c 581 B

123456789101112131415161718192021
  1. /*
  2. * partition_enable_leak_detection.c
  3. */
  4. #include "private.h"
  5. /*-------------------------------------------------------- */
  6. void
  7. lub_partition_enable_leak_detection(lub_partition_t *this)
  8. {
  9. lub_heap_t *local_heap = lub_partition__get_local_heap(this);
  10. if(local_heap)
  11. {
  12. lub_heap_leak_suppress_detection(local_heap);
  13. }
  14. if(this->m_global_heap)
  15. {
  16. lub_partition_lock(this);
  17. lub_heap_leak_suppress_detection(this->m_global_heap);
  18. lub_partition_unlock(this);
  19. }
  20. }
  21. /*-------------------------------------------------------- */