From 2068cb6d3ff213c6a1834346310938933fc5ce0f Mon Sep 17 00:00:00 2001 From: James Cherry Date: Thu, 9 Jan 2020 18:56:25 -0800 Subject: [PATCH] dispatch_queue leak --- search/Sta.cc | 1 + search/StaState.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/search/Sta.cc b/search/Sta.cc index 0f7184fb..1c845b64 100644 --- a/search/Sta.cc +++ b/search/Sta.cc @@ -514,6 +514,7 @@ Sta::~Sta() delete report_; delete power_; delete equiv_cells_; + delete dispatch_queue_; } void diff --git a/search/StaState.cc b/search/StaState.cc index 8b6e42de..9b4af6f9 100644 --- a/search/StaState.cc +++ b/search/StaState.cc @@ -38,7 +38,7 @@ StaState::StaState() : search_(nullptr), latches_(nullptr), thread_count_(1), - dispatch_queue_(new DispatchQueue(thread_count_)), + dispatch_queue_(nullptr), pocv_enabled_(false), sigma_factor_(1.0) {