projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae3b4f2
)
Fix memory leak.
author
Ben Laurie
<ben@openssl.org>
Mon, 23 Feb 2009 16:40:59 +0000
(16:40 +0000)
committer
Ben Laurie
<ben@openssl.org>
Mon, 23 Feb 2009 16:40:59 +0000
(16:40 +0000)
ssl/ssl_lib.c
patch
|
blob
|
history
diff --git
a/ssl/ssl_lib.c
b/ssl/ssl_lib.c
index 803894c44f968b82e22e4dfd9592256db913c588..17fc536636715b85d0e4d879211786ac416f577a 100644
(file)
--- 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);