projects
/
bison.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
java: stype is obsoleted by api.value.type
[bison.git]
/
src
/
symlist.c
diff --git
a/src/symlist.c
b/src/symlist.c
index 005331b237137d635ad7d248d8157927e00e5e51..300eeda87f68ed536a63be824803df5d7d6c2a7c 100644
(file)
--- 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);
{
next = node->next;
named_ref_free (node->named_ref);
+ if (node->content_type == SYMLIST_TYPE)
+ free (node->content.sem_type);
free (node);
}
}
free (node);
}
}
@@
-175,7
+177,7
@@
symbol_list_n_type_name_get (symbol_list *l, location loc, int n)
l = symbol_list_n_get (l, n);
if (!l)
{
l = symbol_list_n_get (l, n);
if (!l)
{
- complain
_at (
loc, complaint, _("invalid $ value: $%d"), n);
+ complain
(&
loc, complaint, _("invalid $ value: $%d"), n);
return NULL;
}
aver (l->content_type == SYMLIST_SYMBOL);
return NULL;
}
aver (l->content_type == SYMLIST_SYMBOL);