From: Ben Laurie Date: Wed, 6 Jun 2012 13:03:42 +0000 (+0000) Subject: Fix memory leak. X-Git-Tag: master-post-reformat~1812 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=32e62d1cc486f3f37fa5cbe66de8c0de1b321778;hp=aeda172afd37e6f7b2f285b5f18a5978415cbc9b Fix memory leak. --- 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);