From: Ben Laurie Date: Mon, 23 Feb 2009 16:40:59 +0000 (+0000) Subject: Fix memory leak. X-Git-Tag: OpenSSL_0_9_8k^2~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7587347bc48e7e8a1e800e48bb0a658f1557c424;p=oweals%2Fopenssl.git Fix memory leak. --- diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 803894c44f..17fc536636 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -547,6 +547,8 @@ void SSL_free(SSL *s) if (s->ctx) SSL_CTX_free(s->ctx); #ifndef OPENSSL_NO_TLSEXT + if (s->tlsext_hostname) + OPENSSL_free(s->tlsext_hostname); if (s->initial_ctx) SSL_CTX_free(s->initial_ctx); #ifndef OPENSSL_NO_EC if (s->tlsext_ecpointformatlist) OPENSSL_free(s->tlsext_ecpointformatlist);