some more memory leaks
This commit is contained in:
parent
fb5fb497b5
commit
6de8b4ef7d
@ -276,11 +276,17 @@ static void pack_constants(Context *ctx)
|
|||||||
if (gnd_used) {
|
if (gnd_used) {
|
||||||
ctx->cells[gnd_cell->name] = gnd_cell;
|
ctx->cells[gnd_cell->name] = gnd_cell;
|
||||||
ctx->nets[gnd_net->name] = gnd_net;
|
ctx->nets[gnd_net->name] = gnd_net;
|
||||||
|
} else {
|
||||||
|
delete gnd_net;
|
||||||
|
delete gnd_cell;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vcc_used) {
|
if (vcc_used) {
|
||||||
ctx->cells[vcc_cell->name] = vcc_cell;
|
ctx->cells[vcc_cell->name] = vcc_cell;
|
||||||
ctx->nets[vcc_net->name] = vcc_net;
|
ctx->nets[vcc_net->name] = vcc_net;
|
||||||
|
} else {
|
||||||
|
delete vcc_net;
|
||||||
|
delete vcc_cell;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto dn : dead_nets)
|
for (auto dn : dead_nets)
|
||||||
|
Loading…
Reference in New Issue
Block a user