mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-05 01:09:27 +01:00
(get_list_addr): Clear ui->ei.image/ui->ei.size after unmapping the
image. (Logical change 1.286)
This commit is contained in:
parent
affe34c053
commit
ea7155ebfd
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/* libunwind - a platform-independent unwind library
|
||||
Copyright (C) 2003-2004 Hewlett-Packard Co
|
||||
Copyright (C) 2003-2005 Hewlett-Packard Co
|
||||
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
|
||||
|
||||
This file is part of libunwind.
|
||||
|
@ -50,6 +50,8 @@ get_list_addr (unw_addr_space_t as, unw_word_t *dil_addr, void *arg,
|
|||
if (ui->ei.image)
|
||||
{
|
||||
munmap (ui->ei.image, ui->ei.size);
|
||||
ui->ei.image = NULL;
|
||||
ui->ei.size = 0;
|
||||
/* invalidate the cache: */
|
||||
ui->di_cache.start_ip = ui->di_cache.end_ip = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue