From: Kefu Chai Date: Thu, 12 Mar 2015 03:10:03 +0000 (+0800) Subject: osd: fix a msg leak when OSD is stopping X-Git-Tag: v0.94~38^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=052debd4f89b3ed78f2bffb5fcd0c0d9a1f616b5;p=ceph.git osd: fix a msg leak when OSD is stopping Signed-off-by: Kefu Chai --- diff --git a/src/osd/OSD.h b/src/osd/OSD.h index a8e6990e90f71..f03259843dc5a 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -2175,6 +2175,7 @@ protected: ThreadPool::TPHandle &handle) { osd->osd_lock.Lock(); if (osd->is_stopping()) { + msg->put(); osd->osd_lock.Unlock(); return; }