diff --git a/src/test/rgw/test_rgw_iam_policy.cc b/src/test/rgw/test_rgw_iam_policy.cc index dac4d2cef3889..d65ef9185e1ef 100644 --- a/src/test/rgw/test_rgw_iam_policy.cc +++ b/src/test/rgw/test_rgw_iam_policy.cc @@ -159,7 +159,7 @@ class PolicyTest : public ::testing::Test { static string example7; public: PolicyTest() { - cct = new CephContext(CEPH_ENTITY_TYPE_CLIENT); + cct.reset(new CephContext(CEPH_ENTITY_TYPE_CLIENT), false); } }; @@ -857,7 +857,7 @@ class IPPolicyTest : public ::testing::Test { const rgw::IAM::MaskedIP allowedIPv6Range = { true, rgw::IAM::Address("00100000000000010000110110111000100001011010001100000000000000000000000000000000100010100010111000000011011100000111001100110000"), 124 }; public: IPPolicyTest() { - cct = new CephContext(CEPH_ENTITY_TYPE_CLIENT); + cct.reset(new CephContext(CEPH_ENTITY_TYPE_CLIENT), false); } }; const string IPPolicyTest::arbitrary_tenant = "arbitrary_tenant";