From 41bf25013032da0eeb111ce3c8fc0946c0e61c41 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 4 Dec 2014 09:56:16 +0000 Subject: [PATCH] Fixed memory leak in the event of a failure of BUF_MEM_grow Reviewed-by: Richard Levitte --- ssl/s3_srvr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index f95f9c77e8..a2eebbb596 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -294,6 +294,7 @@ int ssl3_accept(SSL *s) } if (!BUF_MEM_grow(buf,SSL3_RT_MAX_PLAIN_LENGTH)) { + BUF_MEM_free(buf); ret= -1; goto end; } -- 2.40.0