diff --git a/src/xspice/mif/mif_inp2.c b/src/xspice/mif/mif_inp2.c index 569caf583..a7c36290c 100644 --- a/src/xspice/mif/mif_inp2.c +++ b/src/xspice/mif/mif_inp2.c @@ -88,7 +88,11 @@ static void MIFget_port( Mif_Status_t *status); +static char *MIFgettok_gc(char **line); +static char *MIFget_token_gc(char **s, Mif_Token_Type_t *type); +#define MIFgettok MIFgettok_gc +#define MIFget_token MIFget_token_gc /* ********************************************************************* */ @@ -232,7 +236,6 @@ MIF_INP2A ( line = current->line; tmp_token = MIFgettok(&line); /* read instance name again . . . .*/ - tfree(tmp_token); /* OK -- now &line points to the first token after the instance name and we are ready to process the connections @@ -966,6 +969,19 @@ MIFget_port( } +#undef MIFgettok +#undef MIFget_token + +static char *MIFgettok_gc(char **line) +{ + return MIFgettok(line); +} + +static char *MIFget_token_gc(char **s, Mif_Token_Type_t *type) +{ + return MIFget_token(s, type); +} +