summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_ciph.c
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2021-11-03 09:19:39 +0100
committerBernd Edlinger <bernd.edlinger@hotmail.de>2021-11-04 16:54:34 +0100
commit3a069c1b0b4857b838186aeb55378195dfa50823 (patch)
tree23a2bc0206d92df621a58b5c027ab5308d56201e /ssl/ssl_ciph.c
parentb3c34401c088dc247b8b54ea812e7cdde6caf361 (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)
Diffstat (limited to 'ssl/ssl_ciph.c')
-rw-r--r--ssl/ssl_ciph.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c
index b2a5fb077e..c396f69c3a 100644
--- a/ssl/ssl_ciph.c
+++ b/ssl/ssl_ciph.c
@@ -1643,6 +1643,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;
}