From f47b4eeb1e8ab450d64561e999568f7105f289c5 Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Fri, 15 Sep 2017 11:20:16 -0700 Subject: [PATCH] Fix memory leak in OptionsTest::OptionsComposeDecompose Summary: Fixing asan error. Closes https://github.com/facebook/rocksdb/pull/2887 Differential Revision: D5838895 Pulled By: yiwu-arbug fbshipit-source-id: 1662ce9856eb5e6877675347dc2240f2acb6fae8 --- options/options_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/options/options_test.cc b/options/options_test.cc index 55bb9605d..185048de8 100644 --- a/options/options_test.cc +++ b/options/options_test.cc @@ -676,6 +676,7 @@ TEST_F(OptionsTest, OptionsComposeDecompose) { ASSERT_OK(RocksDBOptionsParser::VerifyDBOptions(base_db_opts, new_db_opts)); ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(base_cf_opts, new_cf_opts)); + delete new_cf_opts.compaction_filter; } TEST_F(OptionsTest, ColumnFamilyOptionsSerialization) {