From: Aki Tuomi Date: Mon, 27 Apr 2015 06:44:43 +0000 (+0300) Subject: Delete backend when cleaning up Distributor X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~90^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2463%2Fhead;p=thirdparty%2Fpdns.git Delete backend when cleaning up Distributor Fixes CID 1155295 --- diff --git a/pdns/distributor.hh b/pdns/distributor.hh index 3c8fbe3f68..fe62c39126 100644 --- a/pdns/distributor.hh +++ b/pdns/distributor.hh @@ -94,6 +94,9 @@ public: return false; } + ~SingleThreadDistributor() { + if (b) delete b; + } private: Backend *b; };