free NULL cleanup
[openssl.git] / demos / cms / cms_sign2.c
index 23c6eb8f9f6524d3a85c81b39c43db69d9b7d4ad..3276de1b2abc932e2c41b0bd8b4f3a31c66974da 100644 (file)
@@ -82,13 +82,11 @@ int main(int argc, char **argv)
 
     if (scert)
         X509_free(scert);
-    if (skey)
-        EVP_PKEY_free(skey);
+    EVP_PKEY_free(skey);
 
     if (scert2)
         X509_free(scert2);
-    if (skey)
-        EVP_PKEY_free(skey2);
+    EVP_PKEY_free(skey2);
 
     BIO_free(in);
     BIO_free(out);