diff --git a/include/boost/container/detail/allocator_version_traits.hpp b/include/boost/container/detail/allocator_version_traits.hpp index 18460bd..d037e0e 100644 --- a/include/boost/container/detail/allocator_version_traits.hpp +++ b/include/boost/container/detail/allocator_version_traits.hpp @@ -93,7 +93,8 @@ struct allocator_version_traits { size_type n = holder.size(); typename multiallocation_chain::iterator it = holder.begin(); - while(n--){ + while(n){ + --n; pointer p = boost::intrusive::pointer_traits::pointer_to(*it); ++it; a.deallocate(p, 1);