]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: Close ar members when they cannot be processed.
authorMark Wielaard <mark@klomp.org>
Fri, 18 Mar 2022 15:01:20 +0000 (16:01 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 18 Mar 2022 15:01:20 +0000 (16:01 +0100)
commit0e142c560bf599627056efd6deb41af36a7163dd
treec664cab3b64f03752258bd15721e1db680e214de
parent0346d5fd96f64c1c23ab738eec54dfbb8c112dc3
libdwfl: Close ar members when they cannot be processed.

When reporting ar members they should be closed when they cannot
be processed. A comment in offline.c said that process_file called
elf_end if it returned NULL. But this is incorrect. And other places
that call process_file do call elf_end explicitly when it returns
NULL.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdwfl/ChangeLog
libdwfl/offline.c