summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2014-12-04 09:56:16 +0000
committerMatt Caswell <matt@openssl.org>2014-12-08 16:43:25 +0000
commit41bf25013032da0eeb111ce3c8fc0946c0e61c41 (patch)
treee4ecfaba7545146a010f440185859987436c7a42
parent76e6509085ea96df0ca542568ee2596343711307 (diff)
Fixed memory leak in the event of a failure of BUF_MEM_grow
Reviewed-by: Richard Levitte <levitte@openssl.org>
-rw-r--r--ssl/s3_srvr.c1
1 files changed, 1 insertions, 0 deletions
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;
}