Maintained by: NLnet Labs

NULL-checks before free()

W.C.A. Wijngaards
Fri Dec 11 16:01:47 CET 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Michael,

On 10/12/15 01:35, Michael McConville via Unbound-users wrote:
> I thought I'd send a few quick cleanup diffs if people are
> interested. I'm an OpenBSD dev and we include Unbound in our base
> system, so these are just things I've noticed over the past few
> months.
> 
> Here's the first one. POSIX specifies that free() is NULL-safe.
> All modern and almost all prehistoric platforms conform to this,
> and most codebases already assume it.

Thank for you for your patch, I have included it in the source.

Best regards, Wouter


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWauVbAAoJEJ9vHC1+BF+NNEMP/0EBET+nBsszLRBAgPPajY1y
Rhzw9RYqMUnyErTxcbSEtP47KGi1te/qUptxjM7HfvmzxUFIgxL2AABN/qUPI3P+
ypYIfdqa8dc8EgsFZD0dK2IATQSOPn4xORm5n85FAIK8BBoFB6XcPxg0uCSs9qeA
G1JDPhZrhSo9JFlAHRooE+dlJcIPVRJbnPGqljJEUK8hSmJvB/SL7HzvIALz0A0v
Yt5/Iasc4Nfb5sz0Dmq1IjVd0iqiPVUgeoVBpaKH294Q9lpyv5K0CzWJFh9ygcFk
nQpCOKRgxj7IDLE0zTEVpoU7Gjh7YlkwKEcojCh/6Fgxq6d2THfcj7u3fowRXjTp
BecKjnooJ56N6pSELIEME4o9hfmR18rb2Y35Jj/qOcPfnhthkyovNb/u0hwYt5QV
kQQGJcNh9mWAcS6gHaSyIiLwrh7pJIvnUXUeUvAuyRJFZo3xtWwGu4I2LYl9+NBI
YWFRV+qXmcD2+HTEwRdJO+Ia2Idzsgj4n1cLaCrK7ihn03q2aizwXMaTEmPBb6Yn
nCQc6r6533fx/hwNu2MQfdht6+FZEnWU5x4/0v/8vlo4Z8oJALhx2mlXC9JemVNB
Q37odmPgkhN6Wmj+c0wXtfnim6hQ3mfaDMS4/NUfhztukQiFuRAhGFtVB01mqgEx
asMpIZFK3/ZWmZ7yCsrB
=fGl8
-----END PGP SIGNATURE-----