diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-06-08 15:55:57 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-06-08 15:55:57 +0000 |
commit | 8e2f3c1c838b1e30a2eab0e41cb015419727378a (patch) | |
tree | 13f90a74de123b6fffa5ad977fe04637cdfcf7c9 /ssl/s3_clnt.c | |
parent | b6d63b2516f892d007b216b9237f9063b8172d7e (diff) |
fix memory leak
Diffstat (limited to 'ssl/s3_clnt.c')
-rw-r--r-- | ssl/s3_clnt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index 2f4b57e096..dd9a5c2864 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -2390,6 +2390,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; } @@ -2401,6 +2402,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; } |