free NULL cleanup 8
authorRich Salz <rsalz@openssl.org>
Thu, 30 Apr 2015 15:30:03 +0000 (11:30 -0400)
committerRich Salz <rsalz@openssl.org>
Thu, 30 Apr 2015 15:31:07 +0000 (11:31 -0400)
commit2ace745022f5af0709297e96eb0b0829c87c4291
tree4352672cd8681d1df32edd39443c50a98fe0b065
parent5a80d9fbfe445420ffe6b649f29e2e0c412aba5d
free NULL cleanup 8

Do not check for NULL before calling a free routine.  This addresses:
    ASN1_BIT_STRING_free ASN1_GENERALIZEDTIME_free ASN1_INTEGER_free
    ASN1_OBJECT_free ASN1_OCTET_STRING_free ASN1_PCTX_free ASN1_SCTX_free
    ASN1_STRING_clear_free ASN1_STRING_free ASN1_TYPE_free
    ASN1_UTCTIME_free M_ASN1_free_of

Reviewed-by: Richard Levitte <levitte@openssl.org>
24 files changed:
apps/apps.c
apps/asn1pars.c
apps/ca.c
crypto/asn1/a_object.c
crypto/asn1/asn1_gen.c
crypto/asn1/tasn_prn.c
crypto/asn1/tasn_scn.c
crypto/asn1/x_algor.c
crypto/asn1/x_x509a.c
crypto/cms/cms_env.c
crypto/cms/cms_ess.c
crypto/cms/cms_lib.c
crypto/cms/cms_sd.c
crypto/dh/dh_ameth.c
crypto/dsa/dsa_ameth.c
crypto/ec/ec_asn1.c
crypto/ocsp/ocsp_ext.c
crypto/pkcs12/p12_decr.c
crypto/ts/ts_rsp_sign.c
crypto/x509/x509_vpm.c
crypto/x509/x_attrib.c
crypto/x509v3/pcy_cache.c
crypto/x509v3/v3_pci.c
crypto/x509v3/v3_utl.c