Hi,
Suppose pA is a pointer to dynamic allocated memory using calloc. Now I override pA, so pA no longer holds the address of the allocated memory (I know there is a memory leak, but that is not the point). After the program exits (free was not used), does it free the allocated memory made earlier ?
In order that upon exit, the allocated memory be free, must pA hold the address to the allocated memory ?