]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
async: directly call delete without check 3501/head
authorHaomai Wang <haomaiwang@gmail.com>
Thu, 29 Jan 2015 16:48:57 +0000 (00:48 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Thu, 29 Jan 2015 16:48:57 +0000 (00:48 +0800)
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/msg/async/AsyncConnection.cc

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