Don't forget to load the CT error strings
[openssl.git] / demos / cms / cms_sign.c
index 9f2cff0dbe6fae00aaef88905c0de55730a65584..8b5a64d95715433e9fdf75f54786f2414b3fcc3e 100644 (file)
@@ -69,17 +69,11 @@ int main(int argc, char **argv)
         ERR_print_errors_fp(stderr);
     }
 
-    if (cms)
-        CMS_ContentInfo_free(cms);
-    if (scert)
-        X509_free(scert);
-    if (skey)
-        EVP_PKEY_free(skey);
-
+    CMS_ContentInfo_free(cms);
+    X509_free(scert);
+    EVP_PKEY_free(skey);
     BIO_free(in);
     BIO_free(out);
     BIO_free(tbio);
-
     return ret;
-
 }