diff --git a/db/db_test.cc b/db/db_test.cc index 6f8fb00c9..6545f6744 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -1660,6 +1660,7 @@ TEST(DBTest, GetSnapshotLink) { delete db_; db_ = nullptr; ASSERT_OK(DestroyDB(dbname_, options)); + delete checkpoint; // Restore DB name dbname_ = test::TmpDir(env_) + "/db_test";