From: Sage Weil Date: Mon, 14 Sep 2015 18:48:11 +0000 (-0400) Subject: os/ObjectStore: fix leak ref on Sequencer_impl X-Git-Tag: v9.1.0~135^2~2^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b46cdc02faaf814c33660833493c1d75967d2c4a;p=ceph.git os/ObjectStore: fix leak ref on Sequencer_impl This should start at 0 refs, not 1. Signed-off-by: Sage Weil --- diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index 57c99d540d81..c8a54268c970 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -155,7 +155,7 @@ public: Context *c ///< [in] context to call upon flush/commit ) = 0; ///< @return true if idle, false otherwise - Sequencer_impl() : RefCountedObject(0) {} + Sequencer_impl() : RefCountedObject(NULL, 0) {} virtual ~Sequencer_impl() {} }; typedef boost::intrusive_ptr Sequencer_implRef;