Commit 9e6f2e7d by Aldy Hernandez Committed by Aldy Hernandez

decl.c (cp_make_fname_decl): Free return value from fname_as_string.

	* decl.c (cp_make_fname_decl): Free return value from
	fname_as_string.

From-SVN: r82382
parent 0d0bc036
2004-05-28 Aldy Hernandez <aldyh@redhat.com>
* decl.c (cp_make_fname_decl): Free return value from
fname_as_string.
2004-05-28 Mark Mitchell <mark@codesourcery.com>
PR c++/14668
......
......@@ -3087,6 +3087,9 @@ cp_make_fname_decl (tree id, int type_dep)
tree init = cp_fname_init (name, &type);
tree decl = build_decl (VAR_DECL, id, type);
if (name)
free ((char *) name);
/* As we're using pushdecl_with_scope, we must set the context. */
DECL_CONTEXT (decl) = current_function_decl;
DECL_PRETTY_FUNCTION_P (decl) = type_dep;
......
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