On Thursday 04 March 2010 23:09:05 Marek Lindner wrote:
I added a small check add the end of the patch to make sure that we don't attempt to free a NULL pointer.
Sven just informed me that this is not necessary - free() also accepts a NULL pointer. Shockingly I was not aware of that. It seems I'm not the only one since even manpages do it wrong (e.g. man 3 getline). :-)
Cheers, Marek