summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/tasn_scn.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2015-05-01 16:02:07 +0200
committerRich Salz <rsalz@openssl.org>2015-05-01 16:02:07 +0200
commitb548a1f11c06ccdfa4f52a539912d22d77ee309e (patch)
tree37ff8792ddf09e4805aa3ba76b805923d3c52734 /crypto/asn1/tasn_scn.c
parentFix some typo's, silence warnings. (diff)
downloadopenssl-b548a1f11c06ccdfa4f52a539912d22d77ee309e.tar.xz
openssl-b548a1f11c06ccdfa4f52a539912d22d77ee309e.zip
free null cleanup finale
Don't check for NULL before calling OPENSSL_free Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/asn1/tasn_scn.c')
-rw-r--r--crypto/asn1/tasn_scn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/asn1/tasn_scn.c b/crypto/asn1/tasn_scn.c
index 830540550e..cedea9cb78 100644
--- a/crypto/asn1/tasn_scn.c
+++ b/crypto/asn1/tasn_scn.c
@@ -86,8 +86,7 @@ ASN1_SCTX *ASN1_SCTX_new(int (*scan_cb) (ASN1_SCTX *ctx))
void ASN1_SCTX_free(ASN1_SCTX *p)
{
- if (p)
- OPENSSL_free(p);
+ OPENSSL_free(p);
}
const ASN1_ITEM *ASN1_SCTX_get_item(ASN1_SCTX *p)