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
main
Lei Jin 10 years ago
parent ff6ec0eb17
commit bda6f3363d
  1. 1
      db/c_test.c

@ -542,7 +542,6 @@ int main(int argc, char** argv) {
policy = rocksdb_filterpolicy_create_bloom(10);
}
table_options = rocksdb_block_based_options_create();
rocksdb_block_based_options_set_filter_policy(table_options, policy);
// Create new database

Loading…
Cancel
Save