Thread
:
[resolved] C programming - need help with malloc and free
View Single Post
dwaradzyn
2010-07-07 , 07:59
Posts: 317 | Thanked: 787 times | Joined on Oct 2009 @ Krakow, Poland
#
3
You are right about checking return value - I should always do that. But in this particular issue malloc succeeds (if it would fail there will be immediate segfault because of NULL pointer). I will try to isolate this from whole program and investigate further. Anyway thanks for your input.
As the case is not closed yet more thoughts are welcome.
Quote & Reply
|
dwaradzyn
View Public Profile
Send a private message to dwaradzyn
Find all posts by dwaradzyn