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 /gas/read.c | |
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 'gas/read.c')
-rw-r--r-- | gas/read.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,7 +1,5 @@ /* read.c - read a source file - - Copyright 1986, 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, - 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, - 2010, 2011, 2012 Free Software Foundation, Inc. + Copyright 1986-2013 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -5794,8 +5792,8 @@ add_include_dir (char *path) { include_dir_count++; include_dirs = - (char **) realloc (include_dirs, - include_dir_count * sizeof (*include_dirs)); + (char **) xrealloc (include_dirs, + include_dir_count * sizeof (*include_dirs)); } include_dirs[include_dir_count - 1] = path; /* New one. */ |