subckt.c, mif_inp2.c: plug XSPICE setup memory leaks

This commit is contained in:
h_vogt 2012-08-18 18:31:23 +02:00
parent d4ced47e8e
commit 0af75f3bd9
2 changed files with 5 additions and 0 deletions

View File

@ -1028,6 +1028,7 @@ translate(struct line *deck, char *formal, char *actual, char *scname, char *sub
/* copy in the last token, which is the model name */
if (name) {
bxx_printf(&buffer, "%s ", name);
tfree(name);
}
/* Set s to null string for compatibility with code */
/* after switch statement */

View File

@ -732,6 +732,8 @@ MIFget_port_type(
*status = MIF_OK;
}
if (temp)
tfree(temp);
}
@ -903,6 +905,8 @@ MIFget_port(
*status = MIF_ERROR;
return;
}
/* free just the digital ones, the other are still assigned by INPtermInsert */
tfree(*next_token);
break;
default: