* gen-aout.c (main): Fix formatting. Close file.

* emultempl/aix.em (_read_file): Close file at end of function.

	* gas/all/itbl-test.c (main): Close fas.

	* read.c (add_include_dir): Use xrealloc.
	* config/tc-score.c (do_macro_bcmp): Initialise inst_main.
	* config/tc-tic6x.c (tic6x_parse_operand): Initialise second_reg.

	* readelf.c (decode_arm_unwind): Initialise addr structure.
	(process_symbol_table): Free lengths.
	* srcconv.c (wr_sc): Free info.

	* chew.c (perform): Free next.
This commit is contained in:
Nick Clifton 2013-10-14 09:15:09 +00:00
parent bb5ce47a22
commit b2e951ec58
15 changed files with 97 additions and 56 deletions

View file

@ -7170,7 +7170,7 @@ decode_arm_unwind (struct arm_unw_aux_info * aux,
{
int per_index;
unsigned int more_words = 0;
struct absaddr addr;
struct absaddr addr = { 0 };
bfd_vma sym_name = (bfd_vma) -1;
if (remaining == 0)
@ -9858,6 +9858,7 @@ process_symbol_table (FILE * file)
counts = (unsigned long *) calloc (maxlength + 1, sizeof (*counts));
if (counts == NULL)
{
free (lengths);
error (_("Out of memory\n"));
return 0;
}
@ -9926,6 +9927,7 @@ process_symbol_table (FILE * file)
counts = (unsigned long *) calloc (maxlength + 1, sizeof (*counts));
if (counts == NULL)
{
free (lengths);
error (_("Out of memory\n"));
return 0;
}