From: Aki Tuomi Date: Mon, 27 Apr 2015 06:44:43 +0000 (+0300) Subject: Delete backend when cleaning up Distributor X-Git-Tag: auth-3.4.5~3^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf357ff7147f291894ab8d7ba9a48467729c3647;p=pdns Delete backend when cleaning up Distributor Fixes CID 1155295 (cherry picked from commit 5d47a576a653cbff02ddb496b24875c3e9ce5572) --- diff --git a/pdns/distributor.hh b/pdns/distributor.hh index 301d57019..d71686963 100644 --- a/pdns/distributor.hh +++ b/pdns/distributor.hh @@ -94,6 +94,9 @@ public: return false; } + ~SingleThreadDistributor() { + if (b) delete b; + } private: Backend *b; };