Re:Xcode 4 ships a buggy compiler
by mikeash on Saturday December 31, 2011 @10:14AM
(#3410995)
"the assumption that free(NULL) won't corrupt the heap."
That's not an assumption, that's how the free() function is defined to work by the language standard. It never ceases to astound me how many otherwise good C programmers think free(NULL) is an error.
That's not an assumption, that's how the free() function is defined to work by the language standard. It never ceases to astound me how many otherwise good C programmers think free(NULL) is an error.