]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
async: Delete authorizer when connected
authorHaomai Wang <haomaiwang@gmail.com>
Sun, 25 Jan 2015 15:29:00 +0000 (23:29 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Tue, 27 Jan 2015 15:12:44 +0000 (23:12 +0800)
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/msg/async/AsyncConnection.cc

index 35b24d970de0e7f48ae34951fd7e56e23d61a20d..3a730edcf39b950b71ee3cda6376fcecc2ed5a8c 100644 (file)
@@ -200,7 +200,8 @@ AsyncConnection::~AsyncConnection()
 {
   assert(out_q.empty());
   assert(sent.empty());
-  assert(!authorizer);
+  if(authorizer)
+    delete authorizer;
   if (recv_buf)
     delete[] recv_buf;
   if (state_buffer)