Browse Source

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

pre-master-46
Holger Vogt 8 years ago
committed by rlar
parent
commit
b1aa6cfc87
  1. 5
      src/xspice/enh/enhtrans.c

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

Loading…
Cancel
Save