]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix alloc-dealloc mismatch reported by ASan (new[] vs. delete).
authorDavid Anderson <dave@natulte.net>
Sun, 7 Dec 2014 20:02:48 +0000 (12:02 -0800)
committerDavid Anderson <dave@natulte.net>
Sun, 7 Dec 2014 20:02:48 +0000 (12:02 -0800)
Signed-off-by: David Anderson <dave@natulte.net>
src/common/bloom_filter.cc

index 68875e925bf6931975f8678561d2a312cdbb1a96..d85dbea223a20301c7d8f737e3a4481008dda007 100644 (file)
@@ -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_);