demote assert to expect check in circular stack pool destruction, when a leak is detected

master
Francisco 4 years ago committed by Francisco Paisana
parent 6045998909
commit 3c4512cdd2

@ -50,7 +50,7 @@ public:
{ {
for (mem_block_elem_t& elem : pools) { for (mem_block_elem_t& elem : pools) {
std::unique_lock<std::mutex> lock(elem.mutex); std::unique_lock<std::mutex> 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()) { if (elem.alloc.is_init()) {
void* ptr = elem.alloc.memblock_ptr(); void* ptr = elem.alloc.memblock_ptr();
elem.alloc.clear(); elem.alloc.clear();

Loading…
Cancel
Save