fix memory leak

Submitted by: Peter Sylvester
This commit is contained in:
Bodo Möller 2006-04-03 11:49:18 +00:00
parent 67475a7ed7
commit dc1d1b6934

View file

@ -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)