Browse Source

missing cleanup on error in the ASIO TCPClient class

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1290 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya 15 years ago
parent
commit
e50967f425
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/bin/auth/main.cc

+ 2 - 0
src/bin/auth/main.cc

@@ -178,6 +178,8 @@ public:
                                                 response_buffer_.getLength()),
                         boost::bind(&TCPClient::handleWrite, this,
                                     placeholders::error));
+        } else {
+            delete this;
         }
     }