diff options
author | Rich Salz <rsalz@openssl.org> | 2015-03-28 15:54:15 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-03-28 15:54:15 +0100 |
commit | c5ba2d990420e1778ca4a90bf882e0f806404af0 (patch) | |
tree | 61641d19bea624b7fa523162f0ebb0d5e2fccf55 /demos/cms/cms_dec.c | |
parent | Engage vpaes-armv8 module. (diff) | |
download | openssl-c5ba2d990420e1778ca4a90bf882e0f806404af0.tar.xz openssl-c5ba2d990420e1778ca4a90bf882e0f806404af0.zip |
free NULL cleanup
EVP_.*free; this gets:
EVP_CIPHER_CTX_free EVP_PKEY_CTX_free EVP_PKEY_asn1_free
EVP_PKEY_asn1_set_free EVP_PKEY_free EVP_PKEY_free_it
EVP_PKEY_meth_free; and also EVP_CIPHER_CTX_cleanup
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Diffstat (limited to 'demos/cms/cms_dec.c')
-rw-r--r-- | demos/cms/cms_dec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/demos/cms/cms_dec.c b/demos/cms/cms_dec.c index e9782d7c23..71a0e4ffdd 100644 --- a/demos/cms/cms_dec.c +++ b/demos/cms/cms_dec.c @@ -63,8 +63,7 @@ int main(int argc, char **argv) CMS_ContentInfo_free(cms); if (rcert) X509_free(rcert); - if (rkey) - EVP_PKEY_free(rkey); + EVP_PKEY_free(rkey); BIO_free(in); BIO_free(out); |