free NULL cleanup
[openssl.git] / engines / e_chil.c
index 69d49d7d3a88bd8979f85aab7c4ea14182acd0e7..19d29d7e62f7fc909c318f8960843f95c0ac6244 100644 (file)
@@ -849,8 +849,7 @@ static EVP_PKEY *hwcrhk_load_privkey(ENGINE *eng, const char *key_id,
     return res;
  err:
 #  ifndef OPENSSL_NO_RSA
-    if (rtmp)
-        RSA_free(rtmp);
+    RSA_free(rtmp);
 #  endif
     return NULL;
 }