I have a command line C program for which I use the calloc() function to assign some memory for a struct which also has a struct in it with some memory assigned.
If I use the free() function to release the memory from the parent struct, will it also release the memory from the child struct?
Or should I release the memory from the child struct first?