Skip to content

Commit 742d5fa

Browse files
authored
Merge pull request ceph#56455 from tchaikov/wip-test-test_rgw_iam_policy-fix-leak
test/rgw/test_rgw_iam_policy: do not increase ref when creating intru… Reviewed-by: Casey Bodley <[email protected]>
2 parents c743075 + 2ee77b8 commit 742d5fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/rgw/test_rgw_iam_policy.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class PolicyTest : public ::testing::Test {
161161
static string example7;
162162
public:
163163
PolicyTest() {
164-
cct = new CephContext(CEPH_ENTITY_TYPE_CLIENT);
164+
cct.reset(new CephContext(CEPH_ENTITY_TYPE_CLIENT), false);
165165
}
166166
};
167167

@@ -861,7 +861,7 @@ class IPPolicyTest : public ::testing::Test {
861861
const rgw::IAM::MaskedIP allowedIPv6Range = { true, rgw::IAM::Address("00100000000000010000110110111000100001011010001100000000000000000000000000000000100010100010111000000011011100000111001100110000"), 124 };
862862
public:
863863
IPPolicyTest() {
864-
cct = new CephContext(CEPH_ENTITY_TYPE_CLIENT);
864+
cct.reset(new CephContext(CEPH_ENTITY_TYPE_CLIENT), false);
865865
}
866866
};
867867
const string IPPolicyTest::arbitrary_tenant = "arbitrary_tenant";

0 commit comments

Comments
 (0)