Commit 029fc60b by Kazu Hirata Committed by Kazu Hirata

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
parent 681b5028
2004-12-13 Kazu Hirata <kazu@cs.umass.edu>
* c-common.c (fname_as_string): Free namep if we are returning
cstr.text.
2004-12-13 Andrew Pinski <pinskia@physics.uc.edu>
* tree-cfg.c (remove_useless_stmts_cond): Call fold on COND_EXPR_COND.
......
......@@ -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);
......
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