diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
commit | 7fd5097f9fb26871e9f0b329f1cf5554495ed589 (patch) | |
tree | 20b4de6e7953169d2402aff4e158b475b5726e67 /gdb/dbxread.c | |
parent | eac388f33554805a5765a2836926311f77cd8d79 (diff) | |
download | gdb-7fd5097f9fb26871e9f0b329f1cf5554495ed589.tar.gz |
Replace free() with xfree().
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index c8f9cfe1be3..071be760ec4 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -323,7 +323,7 @@ free_header_files (void) { if (this_object_header_files) { - free ((PTR) this_object_header_files); + xfree (this_object_header_files); this_object_header_files = NULL; } n_allocated_this_object_header_files = 0; @@ -767,10 +767,10 @@ dbx_symfile_finish (struct objfile *objfile) while (--i >= 0) { - free (hfiles[i].name); - free (hfiles[i].vector); + xfree (hfiles[i].name); + xfree (hfiles[i].vector); } - free ((PTR) hfiles); + xfree (hfiles); } mfree (objfile->md, objfile->sym_stab_info); } @@ -1093,7 +1093,7 @@ read_dbx_dynamic_symtab (struct objfile *objfile) return; dynsyms = (asymbol **) xmalloc (dynsym_size); - back_to = make_cleanup (free, dynsyms); + back_to = make_cleanup (xfree, dynsyms); dynsym_count = bfd_canonicalize_dynamic_symtab (abfd, dynsyms); if (dynsym_count < 0) @@ -1156,7 +1156,7 @@ read_dbx_dynamic_symtab (struct objfile *objfile) } dynrels = (arelent **) xmalloc (dynrel_size); - make_cleanup (free, dynrels); + make_cleanup (xfree, dynrels); dynrel_count = bfd_canonicalize_dynamic_reloc (abfd, dynrels, dynsyms); if (dynrel_count < 0) |