Fixing valgrind error in checkpoint_test

Summary: Fixed a valgrind issue in checkpoint_test

Test Plan: valgrind on checkpoint_test

Reviewers: igor, anthony

Reviewed By: anthony

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D40455
This commit is contained in:
Venkatesh Radhakrishnan 2015-06-19 20:21:23 -07:00
parent 3bdec09cb7
commit e1d3c7dbe4
1 changed files with 1 additions and 0 deletions

View File

@ -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"));