Y
Hacker News
new
|
ask
|
show
|
jobs
by
wott
3059 days ago
>
before you free, check for Null.
You can free(NULL), no problem. It will not do anything.
1 comments
syockit
3059 days ago
It's usually a problem with pointers to structs that have pointer members. In a typical destruction sequence, you usually free the members before the struct itself.
link