Stop leaking TLS contexts.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 3 Apr 2018 16:25:14 +0000 (18:25 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 3 Apr 2018 16:25:14 +0000 (18:25 +0200)
server.cpp

index dbfe19b..7f07483 100644 (file)
@@ -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());