No. That's a classic memory leak. RobR
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of .Aikilis Sent: Monday, August 16, 2010 9:07 AM To: C-Prog邮件讨论组[英文] Subject: [c-prog] Question:Struct pointer[C++] struct TestStruct { int *p; }; TestStruct *TP; TP=new TestStruct; (*TP).p=new int; delete TP; Is p free? [Non-text portions of this message have been removed] ------------------------------------ To unsubscribe, send a blank message to <mailto:[email protected]>.Yahoo! Groups Links
