diff options
author | Bodo Möller <bodo@openssl.org> | 1999-07-12 15:20:08 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-07-12 15:20:08 +0000 |
commit | 6b521df33c92ff05f70556c105fb750e3c7b9f90 (patch) | |
tree | 4c7f89ac794b584a3fdc95686182f5ece6afd37b /ssl | |
parent | 72e2ffee20bd19197c7a5476017688f77eb89e20 (diff) | |
download | openssl-6b521df33c92ff05f70556c105fb750e3c7b9f90.tar.gz |
Looks like another memory leak ...
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s3_clnt.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index ae850c0875..1f4e3239aa 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -930,6 +930,7 @@ static int ssl3_get_key_exchange(SSL *s) goto err; } s->session->sess_cert->peer_rsa_tmp=rsa; + rsa=NULL; } else #endif @@ -1114,6 +1115,14 @@ f_err: ssl3_send_alert(s,SSL3_AL_FATAL,al); err: EVP_PKEY_free(pkey); +#ifndef NO_RSA + if (rsa != NULL) + RSA_free(rsa); +#endif +#ifndef NO_DH + if (dh != NULL) + DH_free(dh); +#endif return(-1); } |