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();