|
From: | Martin Pala |
Subject: | Re: [monit-dev] monit sendmail.c |
Date: | Tue, 19 Feb 2008 23:49:31 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080129 Iceape/1.1.8 (Debian-1.1.8-2) |
Jan-Henrik Haukeland wrote:
On 18. feb.. 2008, at 21.38, Martin Pala wrote:I think i saw crash on some OS in the past, when free(0) is called ... if you are 100% sure that it will work on all systems, no problem :)Passing the NULL pointer to free is safe, and does nothing.
I'm sorry ... i have checked the code and we are using the FREE with possible NULL argument in major part of the code, so if there will be some (old) platform which won't do nop and will crash in the case of FREE(NULL), we will have problem report already. Since there are no reports on such problems, the safety/portability is verified. I have purged the extra NULL checks before FREE ...
Thanks :) Martin
[Prev in Thread] | Current Thread | [Next in Thread] |