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
This commit is contained in:
parent
0d0bc03606
commit
9e6f2e7dca
|
@ -1,3 +1,8 @@
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue