summaryrefslogtreecommitdiff
path: root/lib/libcrypto/asn1/x_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/asn1/x_info.c')
-rw-r--r--lib/libcrypto/asn1/x_info.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libcrypto/asn1/x_info.c b/lib/libcrypto/asn1/x_info.c
index 2d1bf0d22d2..b17d7ace110 100644
--- a/lib/libcrypto/asn1/x_info.c
+++ b/lib/libcrypto/asn1/x_info.c
@@ -102,8 +102,7 @@ X509_INFO_free(X509_INFO *x)
X509_CRL_free(x->crl);
if (x->x_pkey != NULL)
X509_PKEY_free(x->x_pkey);
- if (x->enc_data != NULL)
- free(x->enc_data);
+ free(x->enc_data);
free(x);
}