Commit b705fe72 by David Malcolm Committed by David Malcolm

PR jit/63854: Don't leak producer_string in dwarf2out.c

gcc/ChangeLog:
	PR jit/63854
	* dwarf2out.c (dwarf2out_c_finalize): Free producer_string.

From-SVN: r217801
parent eec42458
2014-11-19 David Malcolm <dmalcolm@redhat.com> 2014-11-19 David Malcolm <dmalcolm@redhat.com>
PR jit/63854 PR jit/63854
* dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
2014-11-19 David Malcolm <dmalcolm@redhat.com>
PR jit/63854
* ira-costs.c (ira_costs_c_finalize): New function. * ira-costs.c (ira_costs_c_finalize): New function.
* ira.h (ira_costs_c_finalize): New prototype. * ira.h (ira_costs_c_finalize): New prototype.
* toplev.c (toplev::finalize): Call ira_costs_c_finalize. * toplev.c (toplev::finalize): Call ira_costs_c_finalize.
...@@ -24741,6 +24741,8 @@ dwarf2out_c_finalize (void) ...@@ -24741,6 +24741,8 @@ dwarf2out_c_finalize (void)
frame_pointer_fb_offset = 0; frame_pointer_fb_offset = 0;
frame_pointer_fb_offset_valid = false; frame_pointer_fb_offset_valid = false;
base_types.release (); base_types.release ();
XDELETEVEC (producer_string);
producer_string = NULL;
} }
#include "gt-dwarf2out.h" #include "gt-dwarf2out.h"
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