free NULL cleanup 9
authorRich Salz <rsalz@openssl.org>
Sat, 11 Apr 2015 20:32:54 +0000 (16:32 -0400)
committerRich Salz <rsalz@openssl.org>
Sat, 11 Apr 2015 20:32:54 +0000 (16:32 -0400)
commite0e920b1a063f14f36418f8795c96f2c649400e1
treeb1704b3c1e380e01ab8fce7806bbd8d1d6997fa2
parenta38537721dfdd853c40b4b4d99b57950075b0178
free NULL cleanup 9

Ongoing work to skip NULL check before calling free routine.  This gets:
    ecp_nistz256_pre_comp_free nistp224_pre_comp_free nistp256_pre_comp_free
    nistp521_pre_comp_free PKCS7_free PKCS7_RECIP_INFO_free
    PKCS7_SIGNER_INFO_free sk_PKCS7_pop_free PKCS8_PRIV_KEY_INFO_free
    PKCS12_free PKCS12_SAFEBAG_free PKCS12_free sk_PKCS12_SAFEBAG_pop_free
    SSL_CONF_CTX_free SSL_CTX_free SSL_SESSION_free SSL_free ssl_cert_free
    ssl_sess_cert_free

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
20 files changed:
apps/apps.c
apps/crl2p7.c
apps/pkcs12.c
apps/pkcs7.c
crypto/ec/ecp_nistp224.c
crypto/ec/ecp_nistp256.c
crypto/ec/ecp_nistp521.c
crypto/ec/ecp_nistz256.c
crypto/pkcs12/p12_crt.c
crypto/pkcs12/p12_init.c
crypto/pkcs7/pk7_lib.c
demos/smime/smdec.c
demos/smime/smenc.c
demos/smime/smsign.c
demos/smime/smsign2.c
demos/smime/smver.c
ssl/ssl_lib.c
ssl/ssl_sess.c
test/evp_extra_test.c
test/ssltest.c