From bda6f3363dfd6cb7122182c6da6ccabd92a52b15 Mon Sep 17 00:00:00 2001 From: Lei Jin Date: Tue, 26 Aug 2014 09:57:25 -0700 Subject: [PATCH] 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 --- db/c_test.c | 1 - 1 file changed, 1 deletion(-) diff --git a/db/c_test.c b/db/c_test.c index c10fc2f3c..171fd6d5c 100644 --- a/db/c_test.c +++ b/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