diff --git a/src/shrpx_connection_handler.cc b/src/shrpx_connection_handler.cc index 5259d4d3..84221ba7 100644 --- a/src/shrpx_connection_handler.cc +++ b/src/shrpx_connection_handler.cc @@ -159,9 +159,7 @@ ConnectionHandler::~ConnectionHandler() { for (auto ssl_ctx : all_ssl_ctx_) { auto tls_ctx_data = static_cast(SSL_CTX_get_app_data(ssl_ctx)); - if (tls_ctx_data) { - delete tls_ctx_data; - } + delete tls_ctx_data; SSL_CTX_free(ssl_ctx); }