diff options
Diffstat (limited to 'src/lib/libcrypto/x509/by_file.c')
| -rw-r--r-- | src/lib/libcrypto/x509/by_file.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/x509/by_file.c b/src/lib/libcrypto/x509/by_file.c index 10adcfbd77..04366460bb 100644 --- a/src/lib/libcrypto/x509/by_file.c +++ b/src/lib/libcrypto/x509/by_file.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: by_file.c,v 1.15 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: by_file.c,v 1.16 2014/07/25 06:05:32 doug Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -182,8 +182,7 @@ X509_load_cert_file(X509_LOOKUP *ctx, const char *file, int type) | |||
| 182 | err: | 182 | err: |
| 183 | if (x != NULL) | 183 | if (x != NULL) |
| 184 | X509_free(x); | 184 | X509_free(x); |
| 185 | if (in != NULL) | 185 | BIO_free(in); |
| 186 | BIO_free(in); | ||
| 187 | return (ret); | 186 | return (ret); |
| 188 | } | 187 | } |
| 189 | 188 | ||
| @@ -243,8 +242,7 @@ X509_load_crl_file(X509_LOOKUP *ctx, const char *file, int type) | |||
| 243 | err: | 242 | err: |
| 244 | if (x != NULL) | 243 | if (x != NULL) |
| 245 | X509_CRL_free(x); | 244 | X509_CRL_free(x); |
| 246 | if (in != NULL) | 245 | BIO_free(in); |
| 247 | BIO_free(in); | ||
| 248 | return (ret); | 246 | return (ret); |
| 249 | } | 247 | } |
| 250 | 248 | ||
