inp2m.c: plug memory leak

This commit is contained in:
h_vogt 2013-09-29 22:16:23 +02:00 committed by rlar
parent 4d1b4bfa0a
commit dad80811f9
1 changed files with 6 additions and 1 deletions

View File

@ -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")