diff options
author | Ben Laurie <ben@openssl.org> | 2001-08-28 13:45:41 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2001-08-28 13:45:41 +0000 |
commit | 1f3b65801b1b0bf11e18c318f7b2c6fcd357e3aa (patch) | |
tree | 23401f6ba3ffa417cb0744a6d229d638eddccb76 /ssl | |
parent | 5e2c4e23f4f42cf31d75ea6735fbdca7011be3be (diff) |
Fix SSL memory leak.
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s3_lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 8fbb2c2501..4575eeecc0 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -1009,6 +1009,9 @@ void ssl3_clear(SSL *s) rp=s->s3->rbuf.buf; wp=s->s3->wbuf.buf; + EVP_MD_CTX_cleanup(&s->s3->finish_dgst1); + EVP_MD_CTX_cleanup(&s->s3->finish_dgst2); + memset(s->s3,0,sizeof *s->s3); if (rp != NULL) s->s3->rbuf.buf=rp; if (wp != NULL) s->s3->wbuf.buf=wp; |