summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/x_info.c
diff options
context:
space:
mode:
authorderaadt <>2014-05-30 06:22:57 +0000
committerderaadt <>2014-05-30 06:22:57 +0000
commitabd9b10898e82011a65d8e8fca56bf56532edd69 (patch)
tree1ff700d79cee9e764329e5c50d7eb8d5109789cc /src/lib/libcrypto/asn1/x_info.c
parent2ff11427d41a52cb126e9892413db066f8ae166a (diff)
downloadopenbsd-abd9b10898e82011a65d8e8fca56bf56532edd69.tar.gz
openbsd-abd9b10898e82011a65d8e8fca56bf56532edd69.tar.bz2
openbsd-abd9b10898e82011a65d8e8fca56bf56532edd69.zip
more: no need for null check before free
ok tedu guenther
Diffstat (limited to 'src/lib/libcrypto/asn1/x_info.c')
-rw-r--r--src/lib/libcrypto/asn1/x_info.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/x_info.c b/src/lib/libcrypto/asn1/x_info.c
index 2d1bf0d22d..b17d7ace11 100644
--- a/src/lib/libcrypto/asn1/x_info.c
+++ b/src/lib/libcrypto/asn1/x_info.c
@@ -102,8 +102,7 @@ X509_INFO_free(X509_INFO *x)
102 X509_CRL_free(x->crl); 102 X509_CRL_free(x->crl);
103 if (x->x_pkey != NULL) 103 if (x->x_pkey != NULL)
104 X509_PKEY_free(x->x_pkey); 104 X509_PKEY_free(x->x_pkey);
105 if (x->enc_data != NULL) 105 free(x->enc_data);
106 free(x->enc_data);
107 free(x); 106 free(x);
108} 107}
109 108