From: Steinar H. Gunderson Date: Tue, 3 Apr 2018 16:25:14 +0000 (+0200) Subject: Stop leaking TLS contexts. X-Git-Tag: 1.4.0~40 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=b10d63c534fda113e65e24d252e509e616067ef9 Stop leaking TLS contexts. --- diff --git a/server.cpp b/server.cpp index dbfe19b..7f07483 100644 --- a/server.cpp +++ b/server.cpp @@ -986,6 +986,10 @@ void Server::close_client(Client *client) delete_from(&client->stream->to_process, client); } + if (client->tls_context) { + tls_destroy_context(client->tls_context); + } + // Log to access_log. access_log->write(client->get_stats());