diff --git a/test/ttl_test.cc b/test/ttl_test.cc index f4ed234..06da85d 100644 --- a/test/ttl_test.cc +++ b/test/ttl_test.cc @@ -72,6 +72,8 @@ TEST(TestTTL, ReadTTL) { status = db->Get(readOptions, key, &value); ASSERT_FALSE(status.ok()); } + + delete db; } TEST(TestTTL, CompactionTTL) { @@ -100,6 +102,8 @@ TEST(TestTTL, CompactionTTL) { uint64_t sizes1[1]; db->GetApproximateSizes(ranges1, 1, sizes1); ASSERT_EQ(sizes1[0], 0); + + delete db; }