free NULL cleanup
[openssl.git] / crypto / evp / evp_extra_test.c
index 0f7b011ce85e0627fa6e209203e26b7efcee4c6c..c474134a2dbea78e97afb46c83c6c513064b842e 100644 (file)
@@ -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;
 }