diff options
author | Bodo Möller <bodo@openssl.org> | 2006-04-03 11:49:18 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2006-04-03 11:49:18 +0000 |
commit | dc1d1b6934fa511846b68e8c0f4010231760db66 (patch) | |
tree | 337ffc4bd04f887ae5f6f1fc95e00dd90408c4aa /ssl/ssl_lib.c | |
parent | 67475a7ed773212f9209d307493b33e40ae96cda (diff) |
fix memory leak
Submitted by: Peter Sylvester
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r-- | ssl/ssl_lib.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 2c691da0b8..091195f790 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -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) |