Thread
:
Clarification regarding malloc and free in C
View Single Post
Gene Poole
Contributor
8Feb2010,09:54
Since you are calling free on a pointer that was NOT allocated by malloc, the behavior is undefined.