From ce941f6c077f0f7cdd9f1702f32f96e330fca48d Mon Sep 17 00:00:00 2001 From: Haomai Wang Date: Sun, 25 Jan 2015 23:29:00 +0800 Subject: [PATCH] async: Delete authorizer when connected Signed-off-by: Haomai Wang --- src/msg/async/AsyncConnection.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index 35b24d970de..3a730edcf39 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -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) -- 2.47.3