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
main
Venkatesh Radhakrishnan 10 years ago
parent ada3d78734
commit 3257221499
  1. 1
      db/db_test.cc

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

Loading…
Cancel
Save