X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=server.cpp;h=8025fd1b4cb257ee71aa6a280a98c1913e007e73;hb=5c2e4453f2f807a8ef3094902a1fc5544486c89a;hp=a6f45744e1576b03065c712767bf4cea5078eb45;hpb=edf39a7cec7860905689cbec7dd41d7fb3fc8df7;p=cubemap diff --git a/server.cpp b/server.cpp index a6f4574..8025fd1 100644 --- a/server.cpp +++ b/server.cpp @@ -70,6 +70,11 @@ Server::Server() Server::~Server() { safe_close(epoll_fd); + + // We're going to die soon anyway, but clean this up to keep leak checking happy. + for (const auto &acceptor_and_context : tls_server_contexts) { + tls_destroy_context(acceptor_and_context.second); + } } vector Server::get_client_stats() const