Skip to content

Commit 881c7a6

Browse files
committed
grt/cugr: clean up net state in removeNet on the CUGR path
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
1 parent 2866f78 commit 881c7a6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/grt/src/GlobalRouter.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4805,6 +4805,12 @@ void GlobalRouter::removeNet(odb::dbNet* db_net)
48054805

48064806
if (use_cugr_) {
48074807
cugr_->removeNet(db_net);
4808+
auto it = db_net_map_.find(db_net);
4809+
if (it != db_net_map_.end()) {
4810+
delete it->second;
4811+
db_net_map_.erase(it);
4812+
}
4813+
routes_.erase(db_net);
48084814
} else {
48094815
auto it = db_net_map_.find(db_net);
48104816
if (it == db_net_map_.end() || it->second == nullptr) {

0 commit comments

Comments
 (0)