typedef struct ConstructionManager

{

int Number;

int Time;

int StackTime;

int nextNum;

int * next;

}CM;


예를들어 이런 구조체가있고


Cptr= (CM *)malloc(sizeof(CM)*(N+1)); 

해서 할당하고, 


또 

Cptr[num].next = (int*)malloc(sizeof(int));

로 구조체 변수를 만약에 또 할당했을때 


나중에 그냥 free(Cptr);만 해주면, Cptr.next를 할당한 영역도 자동으로 해제 되는거야?