From a1c8e510a8620d955b2d45f0fbdeae0ad9ade357 Mon Sep 17 00:00:00 2001 From: John Spray Date: Mon, 9 Jan 2017 10:45:44 +0000 Subject: [PATCH] libcephfs: fix cct refcount constructing from rados This get() made sense before ceph_mount_info did its own reference acquisition on the context object. Follow up to: a567fa66 libcephfs.cc: fix memory leak Signed-off-by: John Spray --- src/libcephfs.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libcephfs.cc b/src/libcephfs.cc index 2c1ada54438..ec2da4a0d54 100644 --- a/src/libcephfs.cc +++ b/src/libcephfs.cc @@ -320,7 +320,6 @@ extern "C" int ceph_create_from_rados(struct ceph_mount_info **cmount, { auto rados = (librados::RadosClient *) cluster; auto cct = rados->cct; - cct->get(); return ceph_create_with_context(cmount, cct); } -- 2.47.3