Plug a potential memory leak
This commit is contained in:
parent
8f52a67786
commit
c53b32ffa8
|
|
@ -127,6 +127,7 @@ CKTsetup(CKTcircuit *ckt)
|
|||
|
||||
/* Allocate space for the matrix diagonal data */
|
||||
if(num_nodes > 0) {
|
||||
FREE(ckt->enh->rshunt_data.diag);
|
||||
ckt->enh->rshunt_data.diag =
|
||||
TMALLOC(double *, num_nodes);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue