by x-shadowban · 3y ago · 0 comments
Now, how willing WG21 and the compiler vendors are open to the idea, is anyone's guess.
https://github.com/search?q=repo%3Achromium%2Fchromium+memor...
class A {};
std::unique_ptr<A> array(new A[256]);
It's very easy to produce innocuous-looking code that contains leaks. (And yes, I know that make_unique solves the problem here.)