]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - engines/e_sureware.c
free NULL cleanup
[thirdparty/openssl.git] / engines / e_sureware.c
index 36f6f4310410d7e1c03699bed327b631cc1e7618..262766c6027be5fda8994471a089e9809bfda69b 100644 (file)
@@ -801,12 +801,10 @@ static EVP_PKEY *sureware_load_public(ENGINE *e, const char *key_id,
     return res;
  err:
 #  ifndef OPENSSL_NO_RSA
-    if (rsatmp)
-        RSA_free(rsatmp);
+    RSA_free(rsatmp);
 #  endif
 #  ifndef OPENSSL_NO_DSA
-    if (dsatmp)
-        DSA_free(dsatmp);
+    DSA_free(dsatmp);
 #  endif
     return NULL;
 }