News for hackers. Stuff that matters.
Re:A bug that doesn’t exist on x86: Exploiting an ARM-only r... by vitus on Tuesday October 26, 2021 @10:47PM (#29009043)
Exactly as usefulcat points out: with modern C++, the bulk of object lifetimes should be handled with unique_ptr and/or directly on the stack, so your destructors are automatically called for you (reducing the risk of double frees or memory leaks).

unique_ptr forces you to think about your dependencies and when objects can / should be cleaned up.

There are no comments on this comment yet.