Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
po1nt
5mo ago
0 comments
Share
It shouldn't
https://pubs.opengroup.org/onlinepubs/7908799/xsh/free.html
>If ptr is a null pointer, no action occurs.
undefined | Better HN
0 comments
default
newest
oldest
quietbritishjim
5mo ago
While I agree it shouldn't, that particular document is the UNIX specification, not the C specification, so it does not apply to C compilers on non-UNIX platforms.
jibal
5mo ago
free(NULL) is a noop ever since C89 (I was on the standards committee, X3J11).
j
/
k
navigate · click thread line to collapse