fix valgrind error in c_test caused by BlockBasedTableOptions
Summary: It was creating BlockBasedTableOptions object in a loop without calling destroy() Test Plan: valgrind ./c_test --leak-check=full --show-reachable=yes Reviewers: sdong, igor Reviewed By: igor Subscribers: leveldb Differential Revision: https://reviews.facebook.net/D22431
This commit is contained in:
parent
ff6ec0eb17
commit
bda6f3363d
@ -542,7 +542,6 @@ int main(int argc, char** argv) {
|
|||||||
policy = rocksdb_filterpolicy_create_bloom(10);
|
policy = rocksdb_filterpolicy_create_bloom(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
table_options = rocksdb_block_based_options_create();
|
|
||||||
rocksdb_block_based_options_set_filter_policy(table_options, policy);
|
rocksdb_block_based_options_set_filter_policy(table_options, policy);
|
||||||
|
|
||||||
// Create new database
|
// Create new database
|
||||||
|
Loading…
Reference in New Issue
Block a user