From 3c4512cdd2caf717e1cf633c637a0b575cbc5ab6 Mon Sep 17 00:00:00 2001 From: Francisco Date: Mon, 26 Apr 2021 14:36:08 +0100 Subject: [PATCH] demote assert to expect check in circular stack pool destruction, when a leak is detected --- lib/include/srsran/adt/pool/circular_stack_pool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/include/srsran/adt/pool/circular_stack_pool.h b/lib/include/srsran/adt/pool/circular_stack_pool.h index ac9a3e82f..2228e8d29 100644 --- a/lib/include/srsran/adt/pool/circular_stack_pool.h +++ b/lib/include/srsran/adt/pool/circular_stack_pool.h @@ -50,7 +50,7 @@ public: { for (mem_block_elem_t& elem : pools) { std::unique_lock lock(elem.mutex); - srsran_assert(elem.count == 0, "There are missing deallocations for stack id=%zd", elem.key); + srsran_expect(elem.count == 0, "There are missing deallocations for stack id=%zd", elem.key); if (elem.alloc.is_init()) { void* ptr = elem.alloc.memblock_ptr(); elem.alloc.clear();