From 5d47a576a653cbff02ddb496b24875c3e9ce5572 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Mon, 27 Apr 2015 09:44:43 +0300 Subject: [PATCH] Delete backend when cleaning up Distributor Fixes CID 1155295 --- pdns/distributor.hh | 3 +++ 1 file changed, 3 insertions(+) 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; }; -- 2.47.2