i have two functions:
- both pointers point at the same data.Code:MY_TYPE *dostuff() { MY_TYPE *my_type; ... return my_type; } void other() { MY_TYPE *my_type; ... my_type = dostuff(); ... free(my_type); }
- only the one free is needed to free all memory.
is this true?



LinkBack URL
About LinkBacks


