From 025ee1dbdead0668764aebf1f1303d2c31d7334e Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 8 Jun 2011 15:56:20 +0000 Subject: [PATCH] fix memory leak --- ssl/s3_clnt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index c22837d05d..50bd415b56 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -2243,6 +2243,7 @@ int ssl3_send_client_key_exchange(SSL *s) if (!DH_generate_key(dh_clnt)) { SSLerr(SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE,ERR_R_DH_LIB); + DH_free(dh_clnt); goto err; } @@ -2254,6 +2255,7 @@ int ssl3_send_client_key_exchange(SSL *s) if (n <= 0) { SSLerr(SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE,ERR_R_DH_LIB); + DH_free(dh_clnt); goto err; } -- 2.25.1