mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
binfmt: Fix memory leak in ELF loader
Summary: - I noticed that the hello (ELF) application causes a memory leak. - Finally, I found that the data section is not deallocated. - This commit fixes this issue. Impact: - ELF loader with CONFIG_ARCH_ADDRENV=n Testing: - Tested with the following configs - sprensense:elf, esp32-devkitc:elf, sabre-6quad:elf - spresense:wifi_smp, rv-virt:nsh64, sabre-6quad:netnsh Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
committed by
Xiang Xiao
parent
79952163c1
commit
0cef7b765e
@@ -39,7 +39,7 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
#define BINFMT_NALLOC 3
|
||||
#define BINFMT_NALLOC 4
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
|
||||
Reference in New Issue
Block a user