fix memory leak
authorBodo Möller <bodo@openssl.org>
Mon, 3 Apr 2006 11:49:18 +0000 (11:49 +0000)
committerBodo Möller <bodo@openssl.org>
Mon, 3 Apr 2006 11:49:18 +0000 (11:49 +0000)
Submitted by: Peter Sylvester

ssl/ssl_lib.c

index 2c691da..091195f 100644 (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)