summaryrefslogtreecommitdiff
path: root/lib/libcrypto/asn1/bio_asn1.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/asn1/bio_asn1.c')
-rw-r--r--lib/libcrypto/asn1/bio_asn1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libcrypto/asn1/bio_asn1.c b/lib/libcrypto/asn1/bio_asn1.c
index 327355eeda5..223461d933a 100644
--- a/lib/libcrypto/asn1/bio_asn1.c
+++ b/lib/libcrypto/asn1/bio_asn1.c
@@ -186,8 +186,7 @@ asn1_bio_free(BIO *b)
ctx = (BIO_ASN1_BUF_CTX *) b->ptr;
if (ctx == NULL)
return 0;
- if (ctx->buf)
- free(ctx->buf);
+ free(ctx->buf);
free(ctx);
b->init = 0;
b->ptr = NULL;