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