remove redundent assertion alignment check to avoid exiting the function without releasing scoped mutex

This commit is contained in:
lior izrael
2022-06-13 15:49:05 +03:00
parent c4a046793e
commit f1ecdcf789

View File

@@ -645,7 +645,6 @@ bool rbtree_best_fit<MutexFamily, VoidPointer, MemAlignment>::
//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;
}