fix memory leak
Submitted by: Peter Sylvester
This commit is contained in:
parent
67475a7ed7
commit
dc1d1b6934
1 changed files with 4 additions and 0 deletions
|
@ -530,6 +530,10 @@ void SSL_free(SSL *s)
|
|||
if (s->ctx) SSL_CTX_free(s->ctx);
|
||||
#ifndef OPENSSL_NO_TLSEXT
|
||||
if (s->initial_ctx) SSL_CTX_free(s->initial_ctx);
|
||||
#ifndef OPENSSL_NO_EC
|
||||
if (s->tlsext_ecpointformatlist) OPENSSL_free(s->tlsext_ecpointformatlist);
|
||||
if (s->tlsext_ellipticcurvelist) OPENSSL_free(s->tlsext_ellipticcurvelist);
|
||||
#endif /* OPENSSL_NO_EC */
|
||||
#endif
|
||||
|
||||
if (s->client_CA != NULL)
|
||||
|
|
Loading…
Reference in a new issue