Browse Source

inp2m.c: plug memory leak

pre-master-46
h_vogt 13 years ago
committed by rlar
parent
commit
dad80811f9
  1. 7
      src/spicelib/parser/inp2m.c

7
src/spicelib/parser/inp2m.c

@ -198,8 +198,13 @@ INP2M (CKTcircuit *ckt, INPtables * tab, card * current)
err_msg = INPgetMod (ckt, model, &thismodel, tab);
if ( thismodel == NULL ) {
INPgetModBin( ckt, model, &thismodel, tab, save );
if ( thismodel == NULL ) current->error = err_msg;
if ( thismodel == NULL )
current->error = err_msg;
else
tfree(err_msg);
}
else
tfree(err_msg);
if (thismodel != NULL) {
if (thismodel->INPmodType != INPtypelook ("Mos1")

Loading…
Cancel
Save