diff options
author | zhaozg <zhaozg@gmail.com> | 2021-08-24 22:43:18 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-08-27 09:24:35 +0200 |
commit | 58e1e397c6774be11b903c0f88e85bd2b8c4206f (patch) | |
tree | 2e530638b3719026ab872bb157cf0aa3a3ed8c5a | |
parent | 96ac8f13f4d0ee96baf5724d9f96c44c34b8606c (diff) |
cms: fix memleaks in cms_env.c
CLA: trivial
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16403)
-rw-r--r-- | crypto/cms/cms_env.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/cms/cms_env.c b/crypto/cms/cms_env.c index 04940146fd..fe078f1a7f 100644 --- a/crypto/cms/cms_env.c +++ b/crypto/cms/cms_env.c @@ -737,6 +737,7 @@ static int cms_RecipientInfo_kekri_decrypt(CMS_ContentInfo *cms, goto err; } + OPENSSL_clear_free(ec->key, ec->keylen); ec->key = ukey; ec->keylen = ukeylen; |