diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2021-11-03 09:19:39 +0100 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2021-11-04 16:55:28 +0100 |
commit | 7aa5f7439fe045527db63d2b3ad99135b15f467c (patch) | |
tree | 945770c9f574083d467126dea38e8d1cf02d67ac /ssl | |
parent | 145d5d18b5790ee8ff16d11dd1aea5a105eee0ec (diff) |
Fix a memory leak in ssl_create_cipher_list
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16954)
(cherry picked from commit 3a069c1b0b4857b838186aeb55378195dfa50823)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_ciph.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c index dd22e57c59..be7a969071 100644 --- a/ssl/ssl_ciph.c +++ b/ssl/ssl_ciph.c @@ -1638,6 +1638,7 @@ STACK_OF(SSL_CIPHER) *ssl_create_cipher_list(SSL_CTX *ctx, } if (!sk_SSL_CIPHER_push(cipherstack, sslc)) { + OPENSSL_free(co_list); sk_SSL_CIPHER_free(cipherstack); return NULL; } |