Permalink
Browse files

plug memleak

  • Loading branch information...
1 parent c849701 commit 8c91e2ccd0c775405b3c3dc0cb576106924ae364 @Habbie Habbie committed Aug 24, 2015
Showing with 4 additions and 0 deletions.
  1. +4 −0 pdns/distributor.hh
View
@@ -265,9 +265,11 @@ template<class Answer, class Question, class Backend>void *MultiThreadDistributo
catch(std::exception& e)
{
L<<Logger::Error<<"Error in callback (while sending reply): "<<e.what()<<endl;
+ delete AD.A;
}
catch(...) {
L<<Logger::Error<<"Unknown callback (sending reply) error"<<endl;
+ delete AD.A;
}
}
@@ -314,9 +316,11 @@ template<class Answer, class Question, class Backend>int SingleThreadDistributor
catch(std::exception& e)
{
L<<Logger::Error<<"Error in callback (while sending reply): "<<e.what()<<endl;
+ delete AD.A;
}
catch(...) {
L<<Logger::Error<<"Unknown callback (sending reply) error"<<endl;
+ delete AD.A;
}
return 0;
}

0 comments on commit 8c91e2c

Please sign in to comment.