diff --git a/src/test/rgw/test_rgw_iam_policy.cc b/src/test/rgw/test_rgw_iam_policy.cc index d7aa3244a2268..d31c7aa4295e8 100644 --- a/src/test/rgw/test_rgw_iam_policy.cc +++ b/src/test/rgw/test_rgw_iam_policy.cc @@ -785,7 +785,9 @@ class ManagedPolicyTest : public ::testing::Test { protected: intrusive_ptr cct; public: - ManagedPolicyTest() : cct(new CephContext(CEPH_ENTITY_TYPE_CLIENT)) {} + ManagedPolicyTest() { + cct.reset(new CephContext(CEPH_ENTITY_TYPE_CLIENT), false); + } }; TEST_F(ManagedPolicyTest, IAMFullAccess)