From f1ecdcf789e15c1934be825c275c89583d12792f Mon Sep 17 00:00:00 2001 From: lior izrael Date: Mon, 13 Jun 2022 15:49:05 +0300 Subject: [PATCH] remove redundent assertion alignment check to avoid exiting the function without releasing scoped mutex --- include/boost/interprocess/mem_algo/rbtree_best_fit.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/include/boost/interprocess/mem_algo/rbtree_best_fit.hpp b/include/boost/interprocess/mem_algo/rbtree_best_fit.hpp index c23236e..d1dd9d1 100644 --- a/include/boost/interprocess/mem_algo/rbtree_best_fit.hpp +++ b/include/boost/interprocess/mem_algo/rbtree_best_fit.hpp @@ -645,7 +645,6 @@ bool rbtree_best_fit:: //Iterate through all blocks obtaining their size for(; ib != ie; ++ib){ free_memory += (size_type)ib->m_size*Alignment; - algo_impl_t::assert_alignment(&*ib); if(!algo_impl_t::check_alignment(&*ib)) return false; }