svn commit: r290821 - head/usr.sbin/ctld

Andrew Turner andrew at fubar.geek.nz
Sat Nov 14 17:26:36 UTC 2015


On Sat, 14 Nov 2015 09:22:30 -0800
Bryan Drewery <bdrewery at FreeBSD.org> wrote:

> On 11/14/2015 9:20 AM, Andrew Turner wrote:
> > On Sat, 14 Nov 2015 16:06:01 +0000 (UTC)
> > Edward Tomasz Napierala <trasz at FreeBSD.org> wrote:
> >   
> >> Author: trasz
> >> Date: Sat Nov 14 16:06:01 2015
> >> New Revision: 290821
> >> URL: https://svnweb.freebsd.org/changeset/base/290821
> >>
> >> Log:
> >>   Don't try to avoid calling free(3) with NULL argument.  
> > 
> > Why? free(NULL) is documented to be a nop and is safe to rely on
> > this behaviour.
> >   
> 
> You read it backwards, see the change. It's doing what you want.

Yes, I should read the change more than briefly.

Andrew


More information about the svn-src-head mailing list