From: Sage Weil Date: Tue, 15 Sep 2015 16:35:46 +0000 (-0400) Subject: mon/Monitor: fix MonSession Leak X-Git-Tag: v9.1.0~135^2~1^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=137eb7e3759c9fa1700582b86ab3c0bc0158a957;p=ceph.git mon/Monitor: fix MonSession Leak dispatch() does not need to keep a ref; we hold one indirectly via the MonOpRequest. Signed-off-by: Sage Weil --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 87042f62561c0..de5d60e07ccd8 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -3487,6 +3487,7 @@ void Monitor::dispatch(MonOpRequestRef op) } if (reuse_caps) s->caps = caps; + s->put(); } else { dout(20) << "ms_dispatch existing session " << s << " for " << s->inst << dendl; }