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



_______________________________________________
monit-dev mailing list
monit-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monit-dev

Reply via email to