Comment by magicalhippo
Comment by magicalhippo 8 days ago
Even the C89 draft[1] says passing null should do nothing, and as far as I can tell it's still[2] the case.
Which runtimes would this be?
Comment by magicalhippo 8 days ago
Even the C89 draft[1] says passing null should do nothing, and as far as I can tell it's still[2] the case.
Which runtimes would this be?
I wish I didn't know this, but it could be SunOS4[0] which went out of support in 2003. It's probably the most well-known OS where free(NULL) wasn't supported. I would like to think that people aren't writing new code for it.
[0] https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg001...