Date: Sat, 14 Nov 2015 17:26:04 +0000 From: Andrew Turner <andrew@fubar.geek.nz> To: Bryan Drewery <bdrewery@FreeBSD.org> Cc: Edward Tomasz Napierala <trasz@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r290821 - head/usr.sbin/ctld Message-ID: <20151114172604.0b7bfbd5@bender.Home> In-Reply-To: <56476DD6.5010805@FreeBSD.org> References: <201511141606.tAEG61Rh062202@repo.freebsd.org> <20151114172030.7dfc24d0@bender.Home> <56476DD6.5010805@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 14 Nov 2015 09:22:30 -0800 Bryan Drewery <bdrewery@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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151114172604.0b7bfbd5>