]> granicus.if.org Git - pdns/commitdiff
Delete backend when cleaning up Distributor
authorAki Tuomi <cmouse@desteem.org>
Mon, 27 Apr 2015 06:44:43 +0000 (09:44 +0300)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 9 May 2015 12:00:12 +0000 (14:00 +0200)
Fixes CID 1155295

(cherry picked from commit 5d47a576a653cbff02ddb496b24875c3e9ce5572)

pdns/distributor.hh

index 301d5701975d0590d21bacf5d8d58d2822d8c753..d71686963f39506aa746e9eefe8ebb12b888d346 100644 (file)
@@ -94,6 +94,9 @@ public:
     return false;
   }
 
+  ~SingleThreadDistributor() {
+    if (b) delete b;
+  }
 private:
   Backend *b;
 };