File openssl-CVE-2009-5146.patch of Package compat-openssl098.1339

commit 241d088156cdd12bce84b26dbc9060972ef73d96
Author: Ben Laurie <ben@openssl.org>
Date:   Mon Feb 23 16:02:47 2009 +0000

    Fix memory leak.

diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 68eee77..893abff 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -510,6 +510,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);
 	if (s->tlsext_ocsp_exts)
 		sk_X509_EXTENSION_pop_free(s->tlsext_ocsp_exts,