Commit 04693f2f by Gabriel Dos Reis Committed by Gabriel Dos Reis

name-lookup.c (binding_entry_free): Nullify name and type fields.

        * name-lookup.c (binding_entry_free): Nullify name and type
        fields.

From-SVN: r72069
parent ec00bfc0
2003-10-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
* name-lookup.c (binding_entry_free): Nullify name and type
fields.
2003-10-02 Mark Mitchell <mark@codesourcery.com> 2003-10-02 Mark Mitchell <mark@codesourcery.com>
PR c++/12486 PR c++/12486
......
...@@ -66,6 +66,8 @@ binding_entry_make (tree name, tree type) ...@@ -66,6 +66,8 @@ binding_entry_make (tree name, tree type)
static inline void static inline void
binding_entry_free (binding_entry entry) binding_entry_free (binding_entry entry)
{ {
entry->name = NULL;
entry->type = NULL;
entry->chain = free_binding_entry; entry->chain = free_binding_entry;
free_binding_entry = entry; free_binding_entry = entry;
} }
...@@ -114,7 +116,6 @@ binding_table_free (binding_table table) ...@@ -114,7 +116,6 @@ binding_table_free (binding_table table)
{ {
binding_entry entry = temp; binding_entry entry = temp;
temp = entry->chain; temp = entry->chain;
entry->chain = NULL;
binding_entry_free (entry); binding_entry_free (entry);
} }
table->chain[i] = NULL; table->chain[i] = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment