Fix memory leak in KeyMayExist test part of db_test

Summary: NewBloomFilterPolicy call requires Delete to be called later on

Test Plan: make; valgrind ./db_test

Reviewers: haobo, dhruba, vamsi

Differential Revision: https://reviews.facebook.net/D11667
This commit is contained in:
Mayank Agarwal 2013-07-11 14:05:31 -07:00
parent 2a986919d6
commit e9b675bd94

View File

@ -800,6 +800,8 @@ TEST(DBTest, KeyMayExist) {
ASSERT_OK(db_->Delete(WriteOptions(), "c"));
ASSERT_TRUE(!db_->KeyMayExist("c"));
delete options.filter_policy;
} while (ChangeOptions());
}