diff options
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_pmeth.c')
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_pmeth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_pmeth.c b/src/lib/libcrypto/rsa/rsa_pmeth.c index f35b5800ab..e083ded40c 100644 --- a/src/lib/libcrypto/rsa/rsa_pmeth.c +++ b/src/lib/libcrypto/rsa/rsa_pmeth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_pmeth.c,v 1.10 2014/07/09 19:51:38 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_pmeth.c,v 1.11 2014/07/10 07:43:11 jsing 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 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -151,8 +151,7 @@ pkey_rsa_cleanup(EVP_PKEY_CTX *ctx) | |||
| 151 | RSA_PKEY_CTX *rctx = ctx->data; | 151 | RSA_PKEY_CTX *rctx = ctx->data; |
| 152 | 152 | ||
| 153 | if (rctx) { | 153 | if (rctx) { |
| 154 | if (rctx->pub_exp) | 154 | BN_free(rctx->pub_exp); |
| 155 | BN_free(rctx->pub_exp); | ||
| 156 | free(rctx->tbuf); | 155 | free(rctx->tbuf); |
| 157 | free(rctx); | 156 | free(rctx); |
| 158 | } | 157 | } |
