diff options
author | Scott Wilson <scott@sawilson.xyz> | 2019-10-31 22:37:51 +1100 |
---|---|---|
committer | Patrick Steuer <patrick.steuer@de.ibm.com> | 2019-11-01 12:39:46 +0100 |
commit | 6624e1f7b6a397948561e9cc2774f0c8af1d2c79 (patch) | |
tree | 8af69c2485dd8ba9cc771020175daf618cd3102f | |
parent | 6e4618a0d7e84e70703d546a194df887fd624727 (diff) | |
download | openssl-6624e1f7b6a397948561e9cc2774f0c8af1d2c79.zip openssl-6624e1f7b6a397948561e9cc2774f0c8af1d2c79.tar.gz openssl-6624e1f7b6a397948561e9cc2774f0c8af1d2c79.tar.bz2 |
Fix potential memory leak in dh_ameth.c
Free dukm in error handling of dh_cms_encrypt()
Fixes #10294
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Patrick Steuer <patrick.steuer@de.ibm.com>
(Merged from https://github.com/openssl/openssl/pull/10310)
-rw-r--r-- | crypto/dh/dh_ameth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/dh/dh_ameth.c b/crypto/dh/dh_ameth.c index abb9bfd..7907f50 100644 --- a/crypto/dh/dh_ameth.c +++ b/crypto/dh/dh_ameth.c @@ -976,6 +976,7 @@ static int dh_cms_encrypt(CMS_RecipientInfo *ri) err: OPENSSL_free(penc); X509_ALGOR_free(wrap_alg); + OPENSSL_free(dukm); return rv; } |