Browse Source

reduce memory leaks

h_vogt 14 years ago
parent
commit
fe11eae0ce
  1. 2
      ChangeLog
  2. 6
      src/spicelib/parser/inpsymt.c

2
ChangeLog

@ -1,5 +1,5 @@
2011-12-28 Holger Vogt
* cktdest.c: reduce memory leaks for command 'reset'
* cktdest.c, inpsymi.c: reduce memory leaks for command 'reset'
bug no. 3229770
2011-12-27 Robert Larice

6
src/spicelib/parser/inpsymt.c

@ -256,13 +256,15 @@ void INPtabEnd(INPtables * tab)
for (i = 0; i < tab->INPsize; i++)
for (t = tab->INPsymtab[i]; t; t = lt) {
lt = t->t_next;
FREE(t); /* But not t_ent ! */
FREE(t->t_ent);
FREE(t);
}
FREE(tab->INPsymtab);
for (i = 0; i < tab->INPtermsize; i++)
for (n = tab->INPtermsymtab[i]; n; n = ln) {
ln = n->t_next;
FREE(n); /* But not t_ent ! */
FREE(n->t_ent);
FREE(n); /* But not t_node ! */
}
FREE(tab->INPtermsymtab);
FREE(tab);

Loading…
Cancel
Save