From e761b7488abea4562d67156b68c4b55386abe6ca Mon Sep 17 00:00:00 2001 From: Haomai Wang Date: Fri, 30 Jan 2015 00:48:57 +0800 Subject: [PATCH] async: directly call delete without check Signed-off-by: Haomai Wang --- src/msg/async/AsyncConnection.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index 3ca6a116396..9af029cd402 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -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) -- 2.47.3