From: Peter van Dijk Date: Mon, 4 Mar 2024 11:48:41 +0000 (+0100) Subject: don't log from destructors, g_log might be gone already (thanks asan) X-Git-Tag: dnsdist-1.10.0-alpha0~19^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9adcdb943811d44fa19451dfc8611af94c781c5;p=thirdparty%2Fpdns.git don't log from destructors, g_log might be gone already (thanks asan) --- diff --git a/modules/remotebackend/unixconnector.cc b/modules/remotebackend/unixconnector.cc index 82447c6172..8b4d5064ec 100644 --- a/modules/remotebackend/unixconnector.cc +++ b/modules/remotebackend/unixconnector.cc @@ -49,11 +49,6 @@ UnixsocketConnector::UnixsocketConnector(std::map opti UnixsocketConnector::~UnixsocketConnector() { if (this->connected) { - try { - g_log << Logger::Info << "closing socket connection" << endl; - } - catch (...) { - } close(fd); } }