提交 c3876117 编写于 作者: S Scott Wilson 提交者: Patrick Steuer

Fix potential memory leak in dh_ameth.c

Free dukm in error handling of dh_cms_encrypt()

Fixes #10294
Reviewed-by: NMatt Caswell <matt@openssl.org>
Reviewed-by: NPatrick Steuer <patrick.steuer@de.ibm.com>
(Merged from https://github.com/openssl/openssl/pull/10310)

(cherry picked from commit 6624e1f7b6a397948561e9cc2774f0c8af1d2c79)
上级 689c07b8
...@@ -901,6 +901,7 @@ static int dh_cms_encrypt(CMS_RecipientInfo *ri) ...@@ -901,6 +901,7 @@ static int dh_cms_encrypt(CMS_RecipientInfo *ri)
err: err:
OPENSSL_free(penc); OPENSSL_free(penc);
X509_ALGOR_free(wrap_alg); X509_ALGOR_free(wrap_alg);
OPENSSL_free(dukm);
return rv; return rv;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册