summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2018-05-29 16:05:10 +0100
committerMatt Caswell <matt@openssl.org>2018-05-31 10:39:13 +0100
commitbdd5f12ea6b76fb133b152a3ca38a3c045be4de3 (patch)
tree8455c92f349be05a4aac8a0847cd3945ff9996c2 /apps
parent28c73b34dfe00e786fc9198d89e089655ec5ae01 (diff)
Fix a memory leak in an error path
Found by Coverity Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6373)
Diffstat (limited to 'apps')
-rw-r--r--apps/s_client.c1
1 files changed, 1 insertions, 0 deletions
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;
}