diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2004-05-28 21:56:59 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2004-05-28 21:56:59 +0000 |
commit | 0d0bc03606fc5c4d655130b9f060b018412187cf (patch) | |
tree | 03c713e614f2501fa7abc0b4ad076f2a234f562e /gcc/c-decl.c | |
parent | 4bb4ae964aaf3ef1dd86d2b595a022a9961aee5b (diff) | |
download | gcc-0d0bc03606fc5c4d655130b9f060b018412187cf.zip gcc-0d0bc03606fc5c4d655130b9f060b018412187cf.tar.gz gcc-0d0bc03606fc5c4d655130b9f060b018412187cf.tar.bz2 |
function.cc: New.
* testsuite/g++.dg/charset/function.cc: New.
* testsuite/gcc.dg/charset/function.c: New.
* c-decl.c (c_make_fname_decl): Free return value from
fname_as_string.
* cp/decl.c (cp_make_fname_decl): Free return value from
fname_as_string.
* c-common.c (fname_as_string): Translate if necessary.
From-SVN: r82381
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index e2c5a97..ce39f6f 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -2362,6 +2362,7 @@ c_make_fname_decl (tree id, int type_dep) DECL_ARTIFICIAL (decl) = 1; init = build_string (length + 1, name); + free ((char *) name); TREE_TYPE (init) = type; DECL_INITIAL (decl) = init; |