From: Haomai Wang Date: Sun, 25 Jan 2015 15:29:00 +0000 (+0800) Subject: async: Delete authorizer when connected X-Git-Tag: v0.93~136^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ce941f6c077f0f7cdd9f1702f32f96e330fca48d;p=ceph.git async: Delete authorizer when connected Signed-off-by: Haomai Wang --- 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)