From bdd5f12ea6b76fb133b152a3ca38a3c045be4de3 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 29 May 2018 16:05:10 +0100 Subject: [PATCH] Fix a memory leak in an error path Found by Coverity Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/6373) --- apps/s_client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/s_client.c b/apps/s_client.c index 9122d48936..09f534033f 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -201,6 +201,7 @@ static int psk_use_session_cb(SSL *s, const EVP_MD *md, cipher = SSL_CIPHER_find(s, tls13_aes128gcmsha256_id); if (cipher == NULL) { BIO_printf(bio_err, "Error finding suitable ciphersuite\n"); + OPENSSL_free(key); return 0; } -- 2.25.1