From a564be715da5651ac442e7922a1d5fe3515fc054 Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Thu, 20 Nov 2014 11:45:30 -0800 Subject: [PATCH] Fix asan error in thread_status_impl.cc --- util/thread_status_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/thread_status_impl.cc b/util/thread_status_impl.cc index f8368a830..24be214f8 100644 --- a/util/thread_status_impl.cc +++ b/util/thread_status_impl.cc @@ -150,8 +150,8 @@ void ThreadStatusImpl::EraseDatabaseInfo(const void* db_key) { for (auto cf_key : db_pair->second) { auto cf_pair = cf_info_map_.find(cf_key); assert(cf_pair != cf_info_map_.end()); - result = cf_info_map_.erase(cf_key); delete cf_pair->second; + result = cf_info_map_.erase(cf_key); assert(result); } db_key_map_.erase(db_key); -- GitLab