If we have a structure that has pointers to malloced memory and then if we free that structure, is the memory referenced by that structure also freed? or do we have to free it m
is the memory referenced by that structure also freed? or do we have to free it manually?
The latter.
Each memory block dynamically allocated needs a separate call to free().
free()