HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by DominikD | Hacker News Reader
Parent
Full thread
DominikD
·
The "if (temp) free(temp);" line made me chuckle.
View on HN
davidshepherd7
·
Can I ask why? Is it bad style? (I'm fairly new to C)
thedufer
·
I'm late to the party here, but `free` is a no-op on a null pointer. So checking for null is just duplicating the first thing `free` does.
Reply on news.ycombinator.com