John (Eljay) Love-Jensen wrote:
As I understand how free() works, passing in a NULL pointer is undefined behavior.
Doesn't C99 (7.20.3.2) says passing NULL to free() just does nothing? The draft I have says so. So does a "man free" on my host.
John (Eljay) Love-Jensen wrote:
As I understand how free() works, passing in a NULL pointer is undefined behavior.
Doesn't C99 (7.20.3.2) says passing NULL to free() just does nothing? The draft I have says so. So does a "man free" on my host.