diff --git a/src/xspice/enh/enhtrans.c b/src/xspice/enh/enhtrans.c index 3c1d0b871..b2b6e1c9c 100644 --- a/src/xspice/enh/enhtrans.c +++ b/src/xspice/enh/enhtrans.c @@ -294,7 +294,6 @@ static char *two2three_translate( char type; - char *tok; char *name; char **out_conn; char **in_conn; @@ -380,8 +379,8 @@ static char *two2three_translate( printf("In two2three_translate, found poly!!! dim = %d \n", dim); #endif - tok = MIFgettok(&card); /* read and discard POLY */ - tok = MIFgettok(&card); /* read and discard dimension */ + txfree(MIFgettok(&card)); /* read and discard POLY */ + txfree(MIFgettok(&card)); /* read and discard dimension */ }