diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index 59ff27138..c67f11a72 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -286,6 +286,7 @@ int ssl3_accept(SSL *s) } if (!BUF_MEM_grow(buf,SSL3_RT_MAX_PLAIN_LENGTH)) { + BUF_MEM_free(buf); ret= -1; goto end; }