* Otto Moerbeek <o...@drijf.net> [2014-07-10 13:48]:
> On Thu, Jul 10, 2014 at 05:44:56AM -0600, Henning Brauer wrote:
> > CVSROOT:    /cvs
> > Module name:        src
> > Changes by: henn...@cvs.openbsd.org 2014/07/10 05:44:56
> > 
> > Modified files:
> >     sys/net        : bpf.c 
> > 
> > Log message:
> > some say you don't need NULL checks before free(). Not 0 either.
> 
> Is that true for kernel free(9)

given that half the frees were unguarded it better be.

and I actually had to verify that too, because kernel free in ancient
history indeed didn't do the NULL checks. but malloc.9 is clear:

"If addr is a null pointer, no action occurs."

Reply via email to