fixed memory leakage in pb_pin fixup

This commit is contained in:
tangxifan 2020-04-07 16:24:04 -06:00
parent 5a04da2082
commit cbcd1d20d4
1 changed files with 2 additions and 1 deletions

View File

@ -121,7 +121,8 @@ void update_cluster_pin_with_post_routing_results(const DeviceContext& device_ct
}
/* Ignore used in local cluster only, reserved one CLB pin */
if (false == clustering_ctx.clb_nlist.net_sinks(cluster_net_id).size()) {
if ( (ClusterNetId::INVALID() != cluster_net_id)
&& (0 == clustering_ctx.clb_nlist.net_sinks(cluster_net_id).size())) {
continue;
}