On Fri, Jul 30, 2010 at 03:55:28PM +0200, Andrew Beekhof wrote:
The if-clause can't help protect you from multiple free()s.
It only becomes relevant if you set the pointer back to NULL, but then
it still has no effect because free(NULL) is perfectly legal.
Ah! I understand now. No, I didn't realize that free(NULL) was allowed.
When did THAT change? :D
--
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/