From 1d2932de4cefcc200f175863a42c311916269981 Mon Sep 17 00:00:00 2001 From: Eric Dequin Date: Thu, 12 Feb 2015 10:44:30 -0500 Subject: [PATCH] Missing OPENSSL_free on error path. Reviewed-by: Andy Polyakov Reviewed-by: Richard Levitte --- ssl/t1_enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index 0c49619b5d..7333ba926b 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -649,6 +649,7 @@ int tls1_setup_key_block(SSL *s) if ((p2 = (unsigned char *)OPENSSL_malloc(num)) == NULL) { SSLerr(SSL_F_TLS1_SETUP_KEY_BLOCK, ERR_R_MALLOC_FAILURE); + OPENSSL_free(p1); goto err; } #ifdef TLS_DEBUG -- 2.25.1