diff --git a/src/umpire/Allocator.cpp b/src/umpire/Allocator.cpp index e06c84bc9..1dd06701b 100644 --- a/src/umpire/Allocator.cpp +++ b/src/umpire/Allocator.cpp @@ -23,8 +23,7 @@ Allocator::Allocator(strategy::AllocationStrategy* allocator) noexcept // if (dynamic_cast(allocator) != nullptr) { m_mutex = new std::mutex; // Management of pointer TBD - } - else { + } else { m_mutex = nullptr; } } diff --git a/src/umpire/Allocator.inl b/src/umpire/Allocator.inl index cd44a67c3..1f441cb69 100644 --- a/src/umpire/Allocator.inl +++ b/src/umpire/Allocator.inl @@ -64,7 +64,7 @@ inline void* Allocator::allocate(const std::string& name, std::size_t bytes) if (m_mutex != nullptr) m_mutex->lock(); - + if (0 == bytes) { ret = allocateNull(); } else {