From b46cdc02faaf814c33660833493c1d75967d2c4a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 14 Sep 2015 14:48:11 -0400 Subject: [PATCH] os/ObjectStore: fix leak ref on Sequencer_impl This should start at 0 refs, not 1. Signed-off-by: Sage Weil --- src/os/ObjectStore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index 57c99d540d81f..c8a54268c9702 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; -- 2.39.5