os/bluestore/BlueFS: fix Dir memory leak

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-09-07 15:58:26 -04:00
parent b9227e3f80
commit 9cd042a566

View File

@ -98,6 +98,8 @@ public:
struct Dir : public RefCountedObject {
map<string,FileRef> file_map;
Dir() : RefCountedObject(NULL, 0) {}
friend void intrusive_ptr_add_ref(Dir *d) {
d->get();
}