diff options
author | Ben Laurie <ben@openssl.org> | 2009-02-23 16:40:59 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2009-02-23 16:40:59 +0000 |
commit | 7587347bc48e7e8a1e800e48bb0a658f1557c424 (patch) | |
tree | 78c3962cf006063499b5f540c168866730767b1a | |
parent | ae3b4f23364844b83c1665d635b106189b60f9a7 (diff) | |
download | openssl-new-7587347bc48e7e8a1e800e48bb0a658f1557c424.tar.gz |
Fix memory leak.
-rw-r--r-- | ssl/ssl_lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |