mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +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:
@@ -259,9 +259,7 @@ void elf_addrenv_free(FAR struct elf_loadinfo_s *loadinfo)
|
|||||||
|
|
||||||
/* Free the address environment */
|
/* Free the address environment */
|
||||||
|
|
||||||
elf_addrenv_select(loadinfo);
|
|
||||||
ret = up_addrenv_destroy(&loadinfo->addrenv);
|
ret = up_addrenv_destroy(&loadinfo->addrenv);
|
||||||
elf_addrenv_restore(loadinfo);
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
berr("ERROR: up_addrenv_destroy failed: %d\n", ret);
|
berr("ERROR: up_addrenv_destroy failed: %d\n", ret);
|
||||||
|
|||||||
Reference in New Issue
Block a user