passes.c (rest_of_handle_final): NULL unlikely_text_section_name after freeing.

* passes.c (rest_of_handle_final): NULL unlikely_text_section_name
	after freeing.

From-SVN: r97536
This commit is contained in:
Alan Modra 2005-04-04 11:53:15 +00:00 committed by Alan Modra
parent 04d8b8197c
commit 8785e81a28
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-04-04 Alan Modra <amodra@bigpond.net.au>
* passes.c (rest_of_handle_final): NULL unlikely_text_section_name
after freeing.
2005-04-04 Richard Earnshaw <richard.earnshaw@arm.com>
PR target/14812

View File

@ -330,7 +330,10 @@ rest_of_handle_final (void)
timevar_push (TV_SYMOUT);
(*debug_hooks->function_decl) (current_function_decl);
if (unlikely_text_section_name)
free (unlikely_text_section_name);
{
free (unlikely_text_section_name);
unlikely_text_section_name = NULL;
}
timevar_pop (TV_SYMOUT);
ggc_collect ();