Better to always use a std::unique_ptr<> to manage the memory.