diff options
author | Ben Laurie <ben@openssl.org> | 1999-01-07 19:15:59 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-01-07 19:15:59 +0000 |
commit | e03ddfae7ea7c27193d3f7c0eaa1d01704647d77 (patch) | |
tree | 7cf2e8444b222a3a52c4735e0415916bb81c4494 /crypto/rsa | |
parent | 6fa89f94c4452be54577eb071891d77c9e2abe16 (diff) | |
download | openssl-e03ddfae7ea7c27193d3f7c0eaa1d01704647d77.tar.gz |
Accept NULL in *_free.
Diffstat (limited to 'crypto/rsa')
-rw-r--r-- | crypto/rsa/rsa_eay.c | 3 | ||||
-rw-r--r-- | crypto/rsa/rsa_enc.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/crypto/rsa/rsa_eay.c b/crypto/rsa/rsa_eay.c index ec143e873b..b4050506c3 100644 --- a/crypto/rsa/rsa_eay.c +++ b/crypto/rsa/rsa_eay.c @@ -474,8 +474,7 @@ RSA *rsa; err: BN_clear_free(&m1); BN_clear_free(&r1); - if(ctx) - BN_CTX_free(ctx); + BN_CTX_free(ctx); return(ret); } diff --git a/crypto/rsa/rsa_enc.c b/crypto/rsa/rsa_enc.c index 5f91239da5..c4a4ad5a60 100644 --- a/crypto/rsa/rsa_enc.c +++ b/crypto/rsa/rsa_enc.c @@ -531,8 +531,7 @@ RSA *rsa; err: if (m1 != NULL) BN_free(m1); if (r1 != NULL) BN_free(r1); - if(ctx != NULL) - BN_CTX_free(ctx); + BN_CTX_free(ctx); return(ret); } |