2007/9/28, Natanael Copa <[EMAIL PROTECTED]>:
> On Fri, 2007-09-28 at 17:51 +0200, Loïc Grenié wrote:
> > These are three patches for busybox.
>>
>> 1) The first one adds a function xfree(ptr) to xfuncs.c which acts
>>     as if (ptr) free(ptr) and substitute some examples of such
>>     elements in the code. I don't remember whether such a
>>     function is necessary or whether free() itself already checks
>>     for null pointer.
>
> from man 3 free:
>
>  If ptr is NULL, no operation is performed.

     Indeed but I was wondering about portability. I've read through
  the sources, though, and I've understood that it's an asumption
  that is made throughout. xfree can and will be suppressed.

      Loïc
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to