binfmt: Call up_module_text_free() in unload_module()
Summary: - I noticed that up_module_text_free() is not called if CONFIG_ARCH_USE_MODULE_TEXT=y - This commit fixes this issue Impact: - None Testing: - Tested with spresense Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
f0b689a063
commit
304d72ed00
@ -166,7 +166,11 @@ int unload_module(FAR struct binary_s *binp)
|
|||||||
if (binp->alloc[i])
|
if (binp->alloc[i])
|
||||||
{
|
{
|
||||||
binfo("Freeing alloc[%d]: %p\n", i, binp->alloc[i]);
|
binfo("Freeing alloc[%d]: %p\n", i, binp->alloc[i]);
|
||||||
|
#if defined(CONFIG_ARCH_USE_MODULE_TEXT)
|
||||||
|
up_module_text_free((FAR void *)binp->alloc[i]);
|
||||||
|
#else
|
||||||
kumm_free((FAR void *)binp->alloc[i]);
|
kumm_free((FAR void *)binp->alloc[i]);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user