summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2015-03-24 10:17:37 -0400
committerRich Salz <rsalz@akamai.com>2015-03-24 23:17:16 -0400
commitd64070838ebba86f00fb3755df5d3e65106e1628 (patch)
treedef90b3063d9ebe0f53920604d02b9786216e327 /crypto/evp
parent1300705a47b9c9498b15a384c6c5348adc342e2c (diff)
free NULL cleanup
Start ensuring all OpenSSL "free" routines allow NULL, and remove any if check before calling them. This gets DH_free, DSA_free, RSA_free Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/evp_extra_test.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/evp/evp_extra_test.c b/crypto/evp/evp_extra_test.c
index 0f7b011ce8..c474134a2d 100644
--- a/crypto/evp/evp_extra_test.c
+++ b/crypto/evp/evp_extra_test.c
@@ -268,9 +268,7 @@ static EVP_PKEY *load_example_rsa_key(void)
if (pkey) {
EVP_PKEY_free(pkey);
}
- if (rsa) {
- RSA_free(rsa);
- }
+ RSA_free(rsa);
return ret;
}