3 ms·
There were a few old free implementations which misbehaved when given null. Maybe they are all gone now, but there was a reason to do it.
by CJefferson 8y ago
There were a few old free implementations which misbehaved when given null. Maybe they are all gone now, but there was a reason to do it.
- hazeii 8y agoIndeed, I recall getting messages along the lines of "error: freeing a null pointer" or something like that. On the other hand, what are the chances of some freshly-written C being built with an old compiler? (possibly moderately high in the embedded world?).