]> 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)
committerAki Tuomi <cmouse@desteem.org>
Mon, 27 Apr 2015 06:44:43 +0000 (09:44 +0300)
Fixes CID 1155295

pdns/distributor.hh

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