+2012-10-08 Tobias Burnus <burnus@net-b.de>
+
+ * lto.c (lto_wpa_write_files, read_cgraph_and_symbols):
+ Free lto_file struct after closing the file.
+
2012-10-08 Jan Hubicka <jh@suse.cz>
* lto/lto.c (remember_with_vars): Also fixup INTEGER_CST.
lto_set_current_out_file (NULL);
lto_obj_file_close (file);
+ free (file);
part->encoder = NULL;
len = strlen (temp_filename);
fatal_error ("closing LTRANS output list %s: %m", ltrans_output_list);
free_ltrans_partitions();
+ free (temp_filename);
timevar_pop (TV_WHOPR_WPA_IO);
}
if (!file_data)
{
lto_obj_file_close (current_lto_file);
+ free (current_lto_file);
current_lto_file = NULL;
break;
}
decl_data[last_file_ix++] = file_data;
lto_obj_file_close (current_lto_file);
+ free (current_lto_file);
current_lto_file = NULL;
ggc_collect ();
}