diff options
| author | deraadt <> | 2014-05-30 06:22:57 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-05-30 06:22:57 +0000 |
| commit | 93efbaa11c9b941fe460a1f6bfa75b21d8624e53 (patch) | |
| tree | 1ff700d79cee9e764329e5c50d7eb8d5109789cc /src/lib/libcrypto/x509v3/v3_prn.c | |
| parent | 4aef4566c1a41608b7d78a7d5cfc3e031b7e4fe3 (diff) | |
| download | openbsd-93efbaa11c9b941fe460a1f6bfa75b21d8624e53.tar.gz openbsd-93efbaa11c9b941fe460a1f6bfa75b21d8624e53.tar.bz2 openbsd-93efbaa11c9b941fe460a1f6bfa75b21d8624e53.zip | |
more: no need for null check before free
ok tedu guenther
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_prn.c')
| -rw-r--r-- | src/lib/libcrypto/x509v3/v3_prn.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_prn.c b/src/lib/libcrypto/x509v3/v3_prn.c index ff08534f9a..d06932aef1 100644 --- a/src/lib/libcrypto/x509v3/v3_prn.c +++ b/src/lib/libcrypto/x509v3/v3_prn.c | |||
| @@ -143,8 +143,7 @@ X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, unsigned long flag, int indent) | |||
| 143 | 143 | ||
| 144 | err: | 144 | err: |
| 145 | sk_CONF_VALUE_pop_free(nval, X509V3_conf_free); | 145 | sk_CONF_VALUE_pop_free(nval, X509V3_conf_free); |
| 146 | if (value) | 146 | free(value); |
| 147 | free(value); | ||
| 148 | if (method->it) | 147 | if (method->it) |
| 149 | ASN1_item_free(ext_str, ASN1_ITEM_ptr(method->it)); | 148 | ASN1_item_free(ext_str, ASN1_ITEM_ptr(method->it)); |
| 150 | else | 149 | else |
