mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-25 04:23:42 +01:00
(get_list_addrr): Don't forget to call maps_close() on error-return.
(Logical change 1.237)
This commit is contained in:
parent
3a38dbb299
commit
c4d1854621
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
if (elf_map_image (&ui->ei, path) < 0)
|
||||||
|
{
|
||||||
|
maps_close (&mi);
|
||||||
return -UNW_ENOINFO;
|
return -UNW_ENOINFO;
|
||||||
|
}
|
||||||
|
|
||||||
Debug (16, "checking object %s\n", path);
|
Debug (16, "checking object %s\n", path);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue