free NULL cleanup
authorRich Salz <rsalz@openssl.org>
Tue, 24 Mar 2015 11:52:24 +0000 (07:52 -0400)
committerRich Salz <rsalz@openssl.org>
Tue, 24 Mar 2015 11:52:24 +0000 (07:52 -0400)
commit0dfb9398bb6493d5a56216e0c7039cb3f9fc88c6
tree9ffaa0bec3d0f14092948174eeea90dc8e2ee7c4
parent7c82e339a677f8546e1456c7a8f6788598a9de43
free NULL cleanup

Start ensuring all OpenSSL "free" routines allow NULL, and remove
any if check before calling them.
This gets ASN1_OBJECT_free and ASN1_STRING_free.

Reviewed-by: Matt Caswell <matt@openssl.org>
26 files changed:
CHANGES
apps/cms.c
crypto/asn1/a_bitstr.c
crypto/asn1/a_int.c
crypto/asn1/a_utctm.c
crypto/asn1/asn1_lib.c
crypto/asn1/asn1_par.c
crypto/asn1/evp_asn1.c
crypto/asn1/p5_pbe.c
crypto/asn1/tasn_fre.c
crypto/asn1/x_algor.c
crypto/asn1/x_pkey.c
crypto/asn1/x_x509a.c
crypto/dh/dh_ameth.c
crypto/dh/dh_pmeth.c
crypto/dsa/dsa_ameth.c
crypto/ec/ec_asn1.c
crypto/ocsp/ocsp_lib.c
crypto/ocsp/v3_ocsp.c
crypto/rsa/rsa_ameth.c
crypto/rsa/rsa_saos.c
crypto/x509v3/pcy_data.c
crypto/x509v3/v3_conf.c
crypto/x509v3/v3_pci.c
doc/crypto/ASN1_OBJECT_new.pod
doc/crypto/ASN1_STRING_new.pod