From beb019f272221cd8ff4a77e39049ea21e6349028 Mon Sep 17 00:00:00 2001 From: shahar Date: Wed, 11 Dec 2024 09:46:39 +0200 Subject: [PATCH] fix: mismatch new-delete in unit test --- 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 601936dfb62b..5fbb4cddb690 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));