1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-16 23:11:44 +02:00

(get_list_addrr): Don't forget to call maps_close() on error-return.

(Logical change 1.237)
This commit is contained in:
hp.com!davidm 2004-06-19 06:11:16 +00:00
parent 3a38dbb299
commit c4d1854621

View file

@ -55,7 +55,10 @@ get_list_addr (unw_addr_space_t as, unw_word_t *dil_addr, void *arg,
}
if (elf_map_image (&ui->ei, path) < 0)
return -UNW_ENOINFO;
{
maps_close (&mi);
return -UNW_ENOINFO;
}
Debug (16, "checking object %s\n", path);