Possible Duplicates:
checking for NULL before calling free
What happens when you try to free() already freed memory in c?
Hope this isn’t a totally dumb question. Anyway…
What happens when a null pointer is passed to free.
Thank you!
P.S. What about a standard compliant allocator? Thanks again!
It immediately returns without doing anything.
Per 7.20.3.2, paragraph 3: