pretty-print.c (output_buffer::~output_buffer): Really free the obstacks.

2013-11-26  Richard Biener  <rguenther@suse.de>

	* pretty-print.c (output_buffer::~output_buffer): Really
	free the obstacks.

From-SVN: r205379
This commit is contained in:
Richard Biener 2013-11-26 08:45:18 +00:00 committed by Richard Biener
parent 93d210970c
commit 65f5c720ad
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-11-26 Richard Biener <rguenther@suse.de>
* pretty-print.c (output_buffer::~output_buffer): Really
free the obstacks.
2013-11-25 Jeff Law <law@redhat.com>
* tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively

View File

@ -50,8 +50,8 @@ output_buffer::output_buffer ()
output_buffer::~output_buffer ()
{
obstack_free (&chunk_obstack, obstack_finish (&chunk_obstack));
obstack_free (&formatted_obstack, obstack_finish (&formatted_obstack));
obstack_free (&chunk_obstack, NULL);
obstack_free (&formatted_obstack, NULL);
}
/* A pointer to the formatted diagnostic message. */