diff options
author | Theophile Ranquet <ranquet@lrde.epita.fr> | 2012-12-11 13:16:22 +0100 |
---|---|---|
committer | Theophile Ranquet <ranquet@lrde.epita.fr> | 2012-12-14 11:35:15 +0100 |
commit | ae9c90ba004680b0acfa6ef7aa457c4c0cfc43d7 (patch) | |
tree | 493ede3bc7c48621c20be89b20a09e42dca37451 /src/symlist.c | |
parent | be27db79a5ec25e1d86799f9e88532d9cc2c55f4 (diff) | |
download | bison-ae9c90ba004680b0acfa6ef7aa457c4c0cfc43d7.tar.gz |
symtab: fix some leaks
* src/symlist.c (symbol_list_free): Deep free it.
* src/symtab.c (symbols_free, semantic_types_sorted): Free it too.
(symbols_do, sorted): Call by address.
Diffstat (limited to 'src/symlist.c')
-rw-r--r-- | src/symlist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/symlist.c b/src/symlist.c index 196db4c8..300eeda8 100644 --- a/src/symlist.c +++ b/src/symlist.c @@ -119,6 +119,8 @@ symbol_list_free (symbol_list *list) { next = node->next; named_ref_free (node->named_ref); + if (node->content_type == SYMLIST_TYPE) + free (node->content.sem_type); free (node); } } |