Fix memory leak.

This commit is contained in:
Ben Laurie 2012-06-06 13:03:42 +00:00
parent aeda172afd
commit 32e62d1cc4

View File

@ -2988,6 +2988,10 @@ void ssl3_free(SSL *s)
if (s->s3->handshake_dgst) ssl3_free_digest_list(s);
#ifndef OPENSSL_NO_SRP
SSL_SRP_CTX_free(s);
#endif
#ifndef OPENSSL_NO_TLSEXT
if (s->s3->tlsext_authz_client_types != NULL)
OPENSSL_free(s->s3->tlsext_authz_client_types);
#endif
OPENSSL_cleanse(s->s3,sizeof *s->s3);
OPENSSL_free(s->s3);