diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-06-08 15:55:43 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-06-08 15:55:43 +0000 |
commit | ca9335760ba0d21c2aaa428bebbf11bc2f96b9a4 (patch) | |
tree | 3fbcafa1acafdfd683f1115e23020c8dbda88d9d | |
parent | 4960411e1fb081f48560cbe4d6037b5835138075 (diff) |
fix memory leak
-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 9e52ed4f01..af8db00640 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -2408,6 +2408,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; } @@ -2419,6 +2420,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; } |