From 7587347bc48e7e8a1e800e48bb0a658f1557c424 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Mon, 23 Feb 2009 16:40:59 +0000 Subject: [PATCH] Fix memory leak. --- ssl/ssl_lib.c | 2 ++ 1 file changed, 2 insertions(+) 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);