Browse Source

Plug a potential memory leak

pre-master-46
Holger Vogt 2 years ago
parent
commit
c53b32ffa8
  1. 1
      src/spicelib/analysis/cktsetup.c

1
src/spicelib/analysis/cktsetup.c

@ -127,6 +127,7 @@ CKTsetup(CKTcircuit *ckt)
/* Allocate space for the matrix diagonal data */ /* Allocate space for the matrix diagonal data */
if(num_nodes > 0) { if(num_nodes > 0) {
FREE(ckt->enh->rshunt_data.diag);
ckt->enh->rshunt_data.diag = ckt->enh->rshunt_data.diag =
TMALLOC(double *, num_nodes); TMALLOC(double *, num_nodes);
} }

Loading…
Cancel
Save