diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/bio_ndef.c')
-rw-r--r-- | src/lib/libcrypto/asn1/bio_ndef.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/bio_ndef.c b/src/lib/libcrypto/asn1/bio_ndef.c index fd6b0e5f17..1a23c27d04 100644 --- a/src/lib/libcrypto/asn1/bio_ndef.c +++ b/src/lib/libcrypto/asn1/bio_ndef.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_ndef.c,v 1.8 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: bio_ndef.c,v 1.9 2014/07/25 06:05:32 doug Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project. | 3 | * project. |
4 | */ | 4 | */ |
@@ -144,8 +144,7 @@ BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) | |||
144 | return sarg.ndef_bio; | 144 | return sarg.ndef_bio; |
145 | 145 | ||
146 | err: | 146 | err: |
147 | if (asn_bio) | 147 | BIO_free(asn_bio); |
148 | BIO_free(asn_bio); | ||
149 | free(ndef_aux); | 148 | free(ndef_aux); |
150 | return NULL; | 149 | return NULL; |
151 | } | 150 | } |