Permalink
Browse files

Delete backend when cleaning up Distributor

Fixes CID 1155295

(cherry picked from commit 5d47a57)
  • Loading branch information...
1 parent 2433d2e commit bf357ff7147f291894ab8d7ba9a48467729c3647 @cmouse cmouse committed with rubenk Apr 27, 2015
Showing with 3 additions and 0 deletions.
  1. +3 −0 pdns/distributor.hh
View
@@ -94,6 +94,9 @@ public:
return false;
}
+ ~SingleThreadDistributor() {
+ if (b) delete b;
+ }
private:
Backend *b;
};

0 comments on commit bf357ff

Please sign in to comment.