2010/8/16 .Aikilis <[email protected]>:
>
> struct TestStruct
> {
>    int *p;
> };
>
> TestStruct *TP;
> TP=new TestStruct;
> (*TP).p=new int;
> delete TP;
>
> Is p free?

No. You have a memory leak there.


-- 
PJH

Reply via email to