I think the checks are necessary to be compatible with libc's on other platforms.
Robert Shearman wrote:
I think the checks are necessary to be compatible with libc's on other platforms.
No they aren't. free() doing nothing with NULL pointers is ANSI-C standard: "free deallocates the space pointed to by p: it does nothing if p is NULL." Quoted from "The C Programming Language" second edition by Kernighan and Ritchie with the subtitle "ANSI C".
bye michael