Summary:
Previous the newly added test called NewBloomFilter without releasing it at the end of the test, which resulted in memory leak and was detected by valgrind.
Test Plan:
Ran valgrind test.
std::vector<std::string> keys;
KVMap kvmap;
Options options;
- options.filter_policy = NewBloomFilterPolicy(10);
+ std::unique_ptr<const FilterPolicy> filter_policy(
+ NewBloomFilterPolicy(10)
+ );
+ options.filter_policy = filter_policy.get();
c.Finish(options, &keys, &kvmap);
auto& stats = c.table()->GetTableStats();