Fixes valgrind error in GetSnapshotLink. Free checkpoint now.

Summary: Free checkpoint after its directory is removed.

Test Plan: Run valgrind with GetSnapshotLink.

Reviewers: igor

Reviewed By: igor

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D29493
This commit is contained in:
Venkatesh Radhakrishnan 2014-11-24 10:20:50 -08:00
parent ada3d78734
commit 3257221499

View File

@ -1660,6 +1660,7 @@ TEST(DBTest, GetSnapshotLink) {
delete db_; delete db_;
db_ = nullptr; db_ = nullptr;
ASSERT_OK(DestroyDB(dbname_, options)); ASSERT_OK(DestroyDB(dbname_, options));
delete checkpoint;
// Restore DB name // Restore DB name
dbname_ = test::TmpDir(env_) + "/db_test"; dbname_ = test::TmpDir(env_) + "/db_test";