2013-11-26 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Nov 2013 08:45:18 +0000 (08:45 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Nov 2013 08:45:18 +0000 (08:45 +0000)
* pretty-print.c (output_buffer::~output_buffer): Really
free the obstacks.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205379 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/pretty-print.c

index 28b415b..17fafa1 100644 (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
index 8cec71b..955a4c4 100644 (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.  */