reduce memory leaks

This commit is contained in:
h_vogt 2011-12-28 14:11:08 +00:00
parent 829fbafb85
commit fe11eae0ce
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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);