Do not overallocate when creating PODArray with given size

Another part of #12278
This commit is contained in:
Alexander Kuzmenkov 2020-08-10 23:36:52 +03:00
parent e06fd84ca7
commit d42dbfce98

View File

@ -111,7 +111,7 @@ protected:
void alloc_for_num_elements(size_t num_elements)
{
alloc(roundUpToPowerOfTwoOrZero(minimum_memory_for_elements(num_elements)));
alloc(minimum_memory_for_elements(num_elements));
}
template <typename ... TAllocatorParams>