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
You'll have to free memory pointed by fomResult and homResult before you free your MResult, otherwise you'll end up with memory leak.
fomResult
homResult
MResult
Of course if you have other pointer to those memory blocks you can use them to release the memory.