Commit f2fde180 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Remove redundant null check before delete

Reported in https://github.com/nghttp2/nghttp2/issues/1384
parent 95efb3e1
......@@ -159,9 +159,7 @@ ConnectionHandler::~ConnectionHandler() {
for (auto ssl_ctx : all_ssl_ctx_) {
auto tls_ctx_data =
static_cast<tls::TLSContextData *>(SSL_CTX_get_app_data(ssl_ctx));
if (tls_ctx_data) {
delete tls_ctx_data;
}
delete tls_ctx_data;
SSL_CTX_free(ssl_ctx);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment