2013-10-10 David Malcolm <dmalcolm@redhat.com>
* ipa-inline.c (ipa_inline): Fix leak of "order" when
optimizations are disabled.
From-SVN: r203389
+2013-10-10 David Malcolm <dmalcolm@redhat.com>
+
+ * ipa-inline.c (ipa_inline): Fix leak of "order" when
+ optimizations are disabled.
+
2013-10-10 David Malcolm <dmalcolm@redhat.com>
* coverage.c (coverage_finish): Fix leak of da_file_name.
{
struct cgraph_node *node;
int nnodes;
- struct cgraph_node **order =
- XCNEWVEC (struct cgraph_node *, cgraph_n_nodes);
+ struct cgraph_node **order;
int i;
int cold;
bool remove_functions = false;
if (!optimize)
return 0;
+ order = XCNEWVEC (struct cgraph_node *, cgraph_n_nodes);
+
if (in_lto_p && optimize)
ipa_update_after_lto_read ();