free NULL cleanup 5a
authorRich Salz <rsalz@openssl.org>
Thu, 30 Apr 2015 21:33:59 +0000 (17:33 -0400)
committerRich Salz <rsalz@openssl.org>
Thu, 30 Apr 2015 21:33:59 +0000 (17:33 -0400)
commit222561fe8ef510f336417a666f69f81ddc9b8fe4
tree70bc6af70550022bc7b7af45bd3c6d64d7fc2680
parent2ace745022f5af0709297e96eb0b0829c87c4291
free NULL cleanup 5a

Don't check for NULL before calling a free routine.  This gets X509_.*free:
    x509_name_ex_free X509_policy_tree_free X509_VERIFY_PARAM_free
    X509_STORE_free X509_STORE_CTX_free X509_PKEY_free
    X509_OBJECT_free_contents X509_LOOKUP_free X509_INFO_free

Reviewed-by: Richard Levitte <levitte@openssl.org>
65 files changed:
apps/apps.c
apps/ca.c
apps/crl2p7.c
apps/ocsp.c
apps/pkcs12.c
apps/s_cb.c
apps/s_client.c
apps/s_server.c
apps/smime.c
apps/verify.c
crypto/asn1/x_info.c
crypto/asn1/x_pkey.c
crypto/asn1/x_pubkey.c
crypto/cms/cms_asn1.c
crypto/cms/cms_pwri.c
crypto/cms/cms_sd.c
crypto/cms/cms_smime.c
crypto/dh/dh_ameth.c
crypto/ec/ec_ameth.c
crypto/evp/p_lib.c
crypto/ocsp/ocsp_vfy.c
crypto/pem/pem_info.c
crypto/pkcs12/p12_kiss.c
crypto/pkcs7/pk7_doit.c
crypto/pkcs7/pk7_smime.c
crypto/rsa/rsa_ameth.c
crypto/rsa/rsa_sign.c
crypto/ts/ts_rsp_sign.c
crypto/x509/by_file.c
crypto/x509/x509_att.c
crypto/x509/x509_lu.c
crypto/x509/x509_r2x.c
crypto/x509/x509_v3.c
crypto/x509/x509_vfy.c
crypto/x509/x509_vpm.c
crypto/x509/x509name.c
crypto/x509/x_attrib.c
crypto/x509/x_name.c
crypto/x509v3/pcy_cache.c
crypto/x509v3/pcy_tree.c
crypto/x509v3/v3_crld.c
demos/cms/cms_ddec.c
demos/cms/cms_dec.c
demos/cms/cms_denc.c
demos/cms/cms_enc.c
demos/cms/cms_sign.c
demos/cms/cms_sign2.c
demos/cms/cms_ver.c
demos/easy_tls/easy-tls.c
demos/smime/smdec.c
demos/smime/smenc.c
demos/smime/smsign.c
demos/smime/smsign2.c
demos/smime/smver.c
demos/spkigen.c
doc/crypto/X509_STORE_CTX_new.pod
doc/crypto/X509_new.pod
ssl/s3_clnt.c
ssl/s3_lib.c
ssl/s3_srvr.c
ssl/ssl_cert.c
ssl/ssl_lib.c
ssl/ssl_rsa.c
ssl/ssl_sess.c
ssl/t1_lib.c