summaryrefslogtreecommitdiff
path: root/src/symlist.c
diff options
context:
space:
mode:
authorTheophile Ranquet <ranquet@lrde.epita.fr>2012-12-11 13:16:22 +0100
committerTheophile Ranquet <ranquet@lrde.epita.fr>2012-12-14 11:35:15 +0100
commitae9c90ba004680b0acfa6ef7aa457c4c0cfc43d7 (patch)
tree493ede3bc7c48621c20be89b20a09e42dca37451 /src/symlist.c
parentbe27db79a5ec25e1d86799f9e88532d9cc2c55f4 (diff)
downloadbison-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.c2
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);
}
}