diff --git a/utilities/checkpoint/checkpoint_test.cc b/utilities/checkpoint/checkpoint_test.cc index 0cdf584ff..d6f05b9b9 100644 --- a/utilities/checkpoint/checkpoint_test.cc +++ b/utilities/checkpoint/checkpoint_test.cc @@ -298,6 +298,7 @@ TEST_F(DBTest, CheckpointCF) { Checkpoint* checkpoint; ASSERT_OK(Checkpoint::Create(db_, &checkpoint)); ASSERT_OK(checkpoint->CreateCheckpoint(snapshot_name)); + delete checkpoint; }); TEST_SYNC_POINT("DBTest::CheckpointCF:1"); ASSERT_OK(Put(0, "Default", "Default1"));