From: Matt Caswell Date: Tue, 29 May 2018 14:59:25 +0000 (+0100) Subject: Free a variable on an error path X-Git-Tag: OpenSSL_1_1_1-pre8~101 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=fbccfedf9bb0840e6c2db54b66ac511b85a3f587 Free a variable on an error path Issue found by Coverity. Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/6373) --- diff --git a/apps/s_server.c b/apps/s_server.c index b0d38e4849..df2bf02a6e 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -212,6 +212,7 @@ static int psk_find_session_cb(SSL *ssl, const unsigned char *identity, cipher = SSL_CIPHER_find(ssl, tls13_aes128gcmsha256_id); if (cipher == NULL) { BIO_printf(bio_err, "Error finding suitable ciphersuite\n"); + OPENSSL_free(key); return 0; }