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