1
0

partition_disable_leak_detection.c 538 B

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