diff options
author | Nick Clifton <nickc@redhat.com> | 2013-10-14 09:15:09 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-10-14 09:15:09 +0000 |
commit | b2e951ec58973b911515b0770ef859cf9b779533 (patch) | |
tree | 1ff43aa3d9c21b43d814854de29f9fed0a19d9ff /binutils | |
parent | bb5ce47a22881c8f925459d4622a2126d6a6a751 (diff) | |
download | gdb-b2e951ec58973b911515b0770ef859cf9b779533.zip gdb-b2e951ec58973b911515b0770ef859cf9b779533.tar.gz gdb-b2e951ec58973b911515b0770ef859cf9b779533.tar.bz2 |
* 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.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/readelf.c | 4 | ||||
-rw-r--r-- | binutils/srconv.c | 1 |
3 files changed, 10 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d7421c1..078b74d 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2013-10-14 Nick Clifton <nickc@redhat.com> + + * readelf.c (decode_arm_unwind): Initialise addr structure. + (process_symbol_table): Free lengths. + * srcconv.c (wr_sc): Free info. + 2013-10-11 Roland McGrath <mcgrathr@google.com> * winduni.c (languages): Use \345 (octal syntax) rather than diff --git a/binutils/readelf.c b/binutils/readelf.c index 19b46c9..32e0cf0 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -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; } diff --git a/binutils/srconv.c b/binutils/srconv.c index 7b3d4a7..dcf33b9 100644 --- a/binutils/srconv.c +++ b/binutils/srconv.c @@ -1578,6 +1578,7 @@ wr_sc (struct coff_ofile *ptr, struct coff_sfile *sfile) sysroff_swap_sc_out (file, &sc); scount++; } + free (info); return scount; } |