X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=demos%2Fcms%2Fcms_dec.c;h=4f9428b4e71a8c377bf87bbcffd823bda5b5eb36;hb=9e20068958b8c1772067299dda7df0b8a82283b4;hp=71a0e4ffdd2453d0e5eee02000a4530166bfc3e8;hpb=c5ba2d990420e1778ca4a90bf882e0f806404af0;p=oweals%2Fopenssl.git diff --git a/demos/cms/cms_dec.c b/demos/cms/cms_dec.c index 71a0e4ffdd..4f9428b4e7 100644 --- a/demos/cms/cms_dec.c +++ b/demos/cms/cms_dec.c @@ -1,3 +1,12 @@ +/* + * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved. + * + * Licensed under the OpenSSL license (the "License"). You may not use + * this file except in compliance with the License. You can obtain a copy + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + */ + /* Simple S/MIME decryption example */ #include #include @@ -59,16 +68,11 @@ int main(int argc, char **argv) ERR_print_errors_fp(stderr); } - if (cms) - CMS_ContentInfo_free(cms); - if (rcert) - X509_free(rcert); + CMS_ContentInfo_free(cms); + X509_free(rcert); EVP_PKEY_free(rkey); - BIO_free(in); BIO_free(out); BIO_free(tbio); - return ret; - }