From f6f6ea29823085bb76f38af5d833da3dc4fad7cb Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 7 Dec 2014 12:02:48 -0800 Subject: [PATCH] Fix alloc-dealloc mismatch reported by ASan (new[] vs. delete). Signed-off-by: David Anderson --- src/common/bloom_filter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/bloom_filter.cc b/src/common/bloom_filter.cc index 68875e925bf..d85dbea223a 100644 --- a/src/common/bloom_filter.cc +++ b/src/common/bloom_filter.cc @@ -34,7 +34,7 @@ void bloom_filter::decode(bufferlist::iterator& p) salt_.clear(); generate_unique_salt(); table_size_ = t.length(); - delete bit_table_; + delete[] bit_table_; if (table_size_) { bit_table_ = new cell_type[table_size_]; t.copy(0, table_size_, (char *)bit_table_); -- 2.47.3