Fix analyse_elf() leaking file descriptors
Fix analyse_elf() leaking file descriptors

This would cause pkg-check -Ba to hold a file open
for every non-elf file in the system due to not
calling elf_end()

Open343/pkg,Open343/pkg,en90/pkg,junovitch/pkg,skoef/pkg,khorben/pkg,khorben/pkg,junovitch/pkg,khorben/pkg,en90/pkg,skoef/pkg