free NULL cleanup 5a
[openssl.git] / demos / cms / cms_sign.c
index 3ad5ce8c1848930959c3522d76bf7bd6c4f2dfd9..e9871dfd3675e1764b3f49bcefc0994933e7e835 100644 (file)
@@ -71,8 +71,7 @@ int main(int argc, char **argv)
 
     if (cms)
         CMS_ContentInfo_free(cms);
-    if (scert)
-        X509_free(scert);
+    X509_free(scert);
     EVP_PKEY_free(skey);
 
     BIO_free(in);