elf.c (elf_add): Close descriptor if we use a debugfile.
authorIan Lance Taylor <iant@golang.org>
Wed, 31 Jan 2018 23:23:21 +0000 (23:23 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 31 Jan 2018 23:23:21 +0000 (23:23 +0000)
commit65d0b859909d306e498ba5dc62c15d5b9e7ac81c
treef8f63ae3f16e9ee325b8f57ba0f5cc31f18acba7
parentbcbe891cd60adcb54eaf9ac2a993bb666f513b2c
elf.c (elf_add): Close descriptor if we use a debugfile.

* elf.c (elf_add): Close descriptor if we use a debugfile.
* btest.c (check_open_files): New static function.
(main): Call check_open_files.

From-SVN: r257275
libbacktrace/ChangeLog
libbacktrace/btest.c
libbacktrace/elf.c