From 32e62d1cc486f3f37fa5cbe66de8c0de1b321778 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Wed, 6 Jun 2012 13:03:42 +0000 Subject: [PATCH] Fix memory leak. --- ssl/s3_lib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 9653de6eea..0f30d2db4b 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -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); -- 2.40.0