binutils-gdb/libctf
Nick Alcock f046147d59 libctf: actually close bfds we have opened
When we do a ctf_fdopen, we open things via bfd_fdopenr and set up a
hook to close the bfd again... but then we never actually call that hook
from anywhere, so we eventually leak every bfd we open.

Fix this by calling the hook (if set) in ctf_arc_close.

New in v3.

libctf/
	* ctf-archive.c (ctf_arc_close): Call ctfi_bfd_close if set.
	* ctf-open-bfd.c (ctf_bfdclose): Fix comment.
2019-10-03 17:04:55 +01:00
..
aclocal.m4
ChangeLog libctf: actually close bfds we have opened 2019-10-03 17:04:55 +01:00
config.h.in
configure Regenerate with approved autotools version 2019-06-14 10:30:35 +09:30
configure.ac
ctf-archive.c libctf: actually close bfds we have opened 2019-10-03 17:04:55 +01:00
ctf-create.c libctf: teach ctf_add_type how forwards work 2019-10-03 17:04:55 +01:00
ctf-decl.c
ctf-decls.h libctf: avoid strndup 2019-06-07 13:46:39 +01:00
ctf-dump.c libctf: dump: check the right error values when dumping functions 2019-10-03 17:04:55 +01:00
ctf-endian.h libctf: make it compile for old glibc 2019-10-03 17:04:55 +01:00
ctf-error.c libctf: add linking of the variable section 2019-10-03 17:04:55 +01:00
ctf-hash.c libctf: don't leak hash keys or values on value replacement 2019-10-03 17:04:55 +01:00
ctf-impl.h libctf: get rid of a disruptive public include of <sys/param.h> 2019-10-03 17:04:55 +01:00
ctf-labels.c
ctf-link.c libctf: add CU-mapping machinery 2019-10-03 17:04:55 +01:00
ctf-lookup.c libctf: introduce ctf_func_type_{info,args}, ctf_type_aname_raw 2019-07-18 20:53:57 +01:00
ctf-open-bfd.c libctf: actually close bfds we have opened 2019-10-03 17:04:55 +01:00
ctf-open.c libctf: eschew C99 for loop initial declarations 2019-10-03 17:04:55 +01:00
ctf-qsort_r.c
ctf-string.c libctf: support getting strings from the ELF strtab 2019-10-03 17:04:55 +01:00
ctf-subr.c libctf: drop mmap()-based CTF data allocator 2019-06-21 13:04:02 +01:00
ctf-types.c libctf: Add iteration over non-root types 2019-10-03 17:04:55 +01:00
ctf-util.c libctf: deduplicate and sort the string table 2019-07-01 11:05:59 +01:00
elf.h
Makefile.am libctf: add the ctf_link machinery 2019-10-03 17:04:55 +01:00
Makefile.in libctf: add the ctf_link machinery 2019-10-03 17:04:55 +01:00
swap.h