X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/d5e8574bf681b11db872279b1648bf6cc5095c9f..95361618dee181507d53f47de2dd50c667b84007:/src/symlist.c diff --git a/src/symlist.c b/src/symlist.c index b3500d2d..bf47da1e 100644 --- a/src/symlist.c +++ b/src/symlist.c @@ -1,6 +1,7 @@ /* Lists of symbols for Bison - Copyright (C) 2002, 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2002, 2005-2007, 2009-2012 Free Software Foundation, + Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -146,7 +147,13 @@ symbol_list_prepend (symbol_list *list, symbol_list *node) void symbol_list_free (symbol_list *list) { - LIST_FREE (symbol_list, list); + symbol_list *node, *next; + for (node = list; node; node = next) + { + next = node->next; + named_ref_free (node->named_ref); + free (node); + } }