I cannot find the answer to this simple question:
given a class that throws in its constructor:
class Foo {
Foo() { throw std::logic_error(); }
}
if I create a new object from this class using the new
operator, then do I leak the created object?
new Foo(); // << does this leak the Foo?