Hacker News new | ask | show | jobs
by masklinn 4179 days ago
> Except free(NULL) behavior is undefined.

> Have you ever bothered to read ANSI C specification?

You mean the one that states

> The free function causes the space pointed to by ptr to be deallocated, that is, made available for further allocation. If ptr is a null pointer, no action occurs.

?