From 325722149925b8dfdfcdf96531b2ae114b736b32 Mon Sep 17 00:00:00 2001 From: Venkatesh Radhakrishnan Date: Mon, 24 Nov 2014 10:20:50 -0800 Subject: [PATCH] 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 --- db/db_test.cc | 1 + 1 file changed, 1 insertion(+) 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";