From d64070838ebba86f00fb3755df5d3e65106e1628 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Tue, 24 Mar 2015 10:17:37 -0400 Subject: 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 --- engines/e_capi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'engines/e_capi.c') diff --git a/engines/e_capi.c b/engines/e_capi.c index f280397ad8..2373d69033 100644 --- a/engines/e_capi.c +++ b/engines/e_capi.c @@ -754,10 +754,8 @@ static EVP_PKEY *capi_get_pkey(ENGINE *eng, CAPI_KEY * key) if (pubkey) OPENSSL_free(pubkey); if (!ret) { - if (rkey) - RSA_free(rkey); - if (dkey) - DSA_free(dkey); + RSA_free(rkey); + DSA_free(dkey); } return ret; -- cgit v1.2.3