incubator-nuttx/binfmt
Masayuki Ishikawa 0cef7b765e 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>
2022-07-23 14:34:27 +08:00
..
libelf arch/addrenv: Change text write enable/disable to generic mprot 2022-05-12 22:28:31 +08:00
libnxflat Use builtins for byteswapping 2022-06-29 11:32:59 +08:00
Kconfig
Makefile
binfmt.h env_dup: Fix copying of env between address environments 2022-04-21 18:38:37 +08:00
binfmt_copyargv.c
binfmt_coredump.c
binfmt_dumpmodule.c
binfmt_exec.c sched/task: Implement execle and execve 2022-04-22 10:40:31 +03:00
binfmt_execmodule.c binfmt_execmodule: Use heap size getter for print 2022-05-02 17:06:08 +08:00
binfmt_execsymtab.c
binfmt_exit.c
binfmt_globals.c
binfmt_initialize.c binfmt: Decouple builtin from binfs file system 2022-02-14 09:35:35 -03:00
binfmt_loadmodule.c
binfmt_register.c
binfmt_unloadmodule.c binfmt: Fix memory leak in ELF loader 2022-07-23 14:34:27 +08:00
binfmt_unregister.c
builtin.c binfmt: Decouple builtin from binfs file system 2022-02-14 09:35:35 -03:00
elf.c binfmt: Fix memory leak in ELF loader 2022-07-23 14:34:27 +08:00
nxflat.c