From 3a069c1b0b4857b838186aeb55378195dfa50823 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Wed, 3 Nov 2021 09:19:39 +0100 Subject: [PATCH] Fix a memory leak in ssl_create_cipher_list Reviewed-by: Paul Dale Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/16954) --- ssl/ssl_ciph.c | 1 + 1 file changed, 1 insertion(+) 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; } -- GitLab