pgrep/pkill
Loïc Grenié
loic.grenie at gmail.com
Fri Sep 28 19:48:36 UTC 2007
2007/9/28, Natanael Copa <natanael.copa at gmail.com>:
> 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
More information about the busybox
mailing list