News for hackers. Stuff that matters.
Re: by lelanthran on Wednesday October 01, 2025 @05:54AM (#45435997)
> `free(NULL);` will crash on some platforms that gcc supports, I believe.

I'm pretty certain that `free(NULL)` is part of the C99 standard, so compiler vendors have had 25 years to address it.

If your `free(NULL)` is crashing on a certain platform, you probably have bigger problems, starting with "Compiler that hasn't been updated in 25 years".

Re: by jibal on Thursday October 02, 2025 @09:34AM (#45449405)
It's in C89 (I was on the standards committee, X3J11).