diff --git a/ChangeLog b/ChangeLog index 3a24b12c1..7e2deb746 100644 --- a/ChangeLog +++ b/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 diff --git a/src/spicelib/parser/inpsymt.c b/src/spicelib/parser/inpsymt.c index c21c3346e..9a16f9da5 100644 --- a/src/spicelib/parser/inpsymt.c +++ b/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);