Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jibal
72 days ago
|
parent
|
context
|
favorite
| on:
Defer: Resource cleanup in C with GCCs magic
> `free(NULL);` will crash on some platforms that gcc supports, I believe.
No, of course it won't. `free(NULL)` has been a noop ever since C89 (and before, for that matter).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
No, of course it won't. `free(NULL)` has been a noop ever since C89 (and before, for that matter).