mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 09:49:21 +08:00
libelf/elf_addrenv_free(): Don't instantiate address environment prior to destroying it
Same as with group_free(), there is no need to instantiate the address environment to destroy it. The only problem was the ARM implementation modified the L1 mappings in up_addrenv_destroy(), which it no longer does.
This commit is contained in:
parent
201a55c7cb
commit
fb12b6e3a9
1 changed files with 0 additions and 2 deletions
|
@ -259,9 +259,7 @@ void elf_addrenv_free(FAR struct elf_loadinfo_s *loadinfo)
|
|||
|
||||
/* Free the address environment */
|
||||
|
||||
elf_addrenv_select(loadinfo);
|
||||
ret = up_addrenv_destroy(&loadinfo->addrenv);
|
||||
elf_addrenv_restore(loadinfo);
|
||||
if (ret < 0)
|
||||
{
|
||||
berr("ERROR: up_addrenv_destroy failed: %d\n", ret);
|
||||
|
|
Loading…
Reference in a new issue