From e63613f5edc0b21e8dd71271ba1e092589b04aef Mon Sep 17 00:00:00 2001 From: Shahar Mike Date: Wed, 11 Dec 2024 10:30:58 +0200 Subject: [PATCH] fix: mismatch new-delete in unit test (#4288) --- src/core/compact_object_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/compact_object_test.cc b/src/core/compact_object_test.cc index 601936dfb..5fbb4cddb 100644 --- a/src/core/compact_object_test.cc +++ b/src/core/compact_object_test.cc @@ -578,7 +578,7 @@ TEST_F(CompactObjectTest, DefragHash) { TEST_F(CompactObjectTest, DefragSet) { // This is still not implemented - StringSet* s = new StringSet(); + StringSet* s = CompactObj::AllocateMR(); s->Add("str"); cobj_.InitRobj(OBJ_SET, kEncodingStrMap2, s); ASSERT_FALSE(cobj_.DefragIfNeeded(0.8));