No need to clear allocator since it's cleared in destructor.