Skip to content

Commit f3f6085

Browse files
committed
leak
Signed-off-by: James Cherry <cherry@parallaxsw.com>
1 parent 24ada4b commit f3f6085

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

search/Sta.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2309,13 +2309,16 @@ Sta::checkLibrarayPocv()
23092309
GateTableModel *gate_model = arc->gateTableModel();
23102310
if (gate_model) {
23112311
const TableModels *models = gate_model->delayModels();
2312-
if (models->sigma(EarlyLate::early()) != nullptr)
2312+
if (models->sigma(EarlyLate::early()) != nullptr) {
2313+
delete lib_iter;
23132314
return;
2315+
}
23142316
}
23152317
}
23162318
}
23172319
}
23182320
}
2321+
delete lib_iter;
23192322
report_->warn(1578, "No liberty POCV/LVF models found.");
23202323
}
23212324

0 commit comments

Comments
 (0)