Don't leak EVP_MD_CTX on error path
authorMatt Caswell <matt@openssl.org>
Wed, 27 Apr 2016 12:22:29 +0000 (13:22 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 28 Apr 2016 12:13:09 +0000 (13:13 +0100)
commit2280358146b620647c51a5b940dd9104c4ea3a3f
tree213310407c8ca29046c232da47a6fa1d52f445b1
parent29f4c357f045562d7eb7837ae890efc1bf4809a2
Don't leak EVP_MD_CTX on error path

The cms_SignerInfo_content_sign() function allocated an EVP_MD_CTX but
then failed to free it on an error path.

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/cms/cms_sd.c