unique_ptr isn&#x27;t safe, and it doesn&#x27;t provide any safety that you didn&#x27;t have with smart pointers in earlier versions of C++.<p>In fact, I&#x27;m even skeptical of the claim that unique_ptr provides significant security benefits over malloc and free. Leaks aren&#x27;t the kinds of security problems we&#x27;re talking about here.