diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-12-13 17:14:56 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-12-13 17:14:56 +0000 |
commit | 029fc60b148af424bfb61370e2b9be07b39f22d8 (patch) | |
tree | c1edd152818f545e0154ecacb43644138bcab2ad /gcc/c-common.c | |
parent | 681b5028d9fe3ecfd7002d43c4d904243fcf2d25 (diff) | |
download | gcc-029fc60b148af424bfb61370e2b9be07b39f22d8.zip gcc-029fc60b148af424bfb61370e2b9be07b39f22d8.tar.gz gcc-029fc60b148af424bfb61370e2b9be07b39f22d8.tar.bz2 |
c-common.c (fname_as_string): Free namep if we are returning cstr.text.
* c-common.c (fname_as_string): Free namep if we are returning
cstr.text.
From-SVN: r92095
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index d58d326..bf48029 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -755,7 +755,10 @@ fname_as_string (int pretty_p) strname.len = len - 1; if (cpp_interpret_string (parse_in, &strname, 1, &cstr, false)) - return (char *) cstr.text; + { + XDELETEVEC (namep); + return (char *) cstr.text; + } } else namep = xstrdup (name); |