Fix memory leak.
This commit is contained in:
parent
ae3b4f2336
commit
7587347bc4
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue