void SomeFunction(SomeObject*); void CodeSnippet() { SomeObject* p = new SomeObject(); try { SomeFunction(p); } catch(...) { } delete p; // is this valid? insufficient information! }