X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fs3_lib.c;h=c4b49aaedf4f35cdd72b182f6a959da868bf6e44;hp=87525faab496aca9496499e4296f484f4b8e8838;hb=a2a0158959e597188c10fbfeaf61888b2df2e587;hpb=e7ecc7d4ddcfc5d2a09dde220e3fc0b5e4b46289 diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 87525faab4..c4b49aaedf 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -695,6 +695,10 @@ void ssl3_clear(SSL *s) Free(s->s3->rrec.comp); s->s3->rrec.comp=NULL; } +#ifndef NO_DH + if (s->s3->tmp.dh != NULL) + DH_free(s->s3->tmp.dh); +#endif rp=s->s3->rbuf.buf; wp=s->s3->wbuf.buf;