xspice/enh/enhtrans.c, two2three_translate(), plug a memory leak

This commit is contained in:
Holger Vogt 2018-02-23 18:13:15 +01:00 committed by rlar
parent 878c9645c7
commit b1aa6cfc87
1 changed files with 2 additions and 3 deletions

View File

@ -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 */
}