From 35330cce1aa1c88c8724038fdb8e2ab9b4e45186 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 5 May 2005 14:25:23 +0000 Subject: * dwarf2.c (read_abbrevs): If bfd_realloc fails, free currently allocated memory before returning. (decode_line_info): Likewise. (_bfd_dwarf2_cleanup_debug_info): New function: Frees memory allocated by functions in this file. * elf-bfd.h (_bfd_dwarf2_cleanup_debug_info): Prototype. * elf.c (bfd_elf_close_and_cleanup): Call _bfd_dwarf2_cleanup_debug_info. --- bfd/elf-bfd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bfd/elf-bfd.h') diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index d5814c1..6033951 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1728,6 +1728,10 @@ extern int bfd_elf_link_record_local_dynamic_symbol extern bfd_boolean _bfd_elf_close_and_cleanup (bfd *); + +extern void _bfd_dwarf2_cleanup_debug_info + (bfd *); + extern bfd_reloc_status_type _bfd_elf_rel_vtable_reloc_fn (bfd *, arelent *, struct bfd_symbol *, void *, asection *, bfd *, char **); -- cgit v1.1