nuttx/binfmt
Masayuki Ishikawa 23d57be21b 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:
- None

Testing:
- Tested with spresense:wifi_smp, rv-virt:nsh64, sabre-6quad:netnsh

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-07-20 14:56:37 +03: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
binfmt_copyargv.c binfmt: Move argv copy into exec_module 2021-06-02 15:20:38 +09:00
binfmt_coredump.c binfmt/elf: add bare metal coredump support 2021-11-23 20:48:00 -06:00
binfmt_dumpmodule.c binfmt: Remove filename/exports/nexports from binary_s 2021-06-02 15:20:38 +09:00
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 Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt_exit.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt_globals.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt_initialize.c binfmt: Decouple builtin from binfs file system 2022-02-14 09:35:35 -03:00
binfmt_loadmodule.c Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-05 19:45:24 +02:00
binfmt_register.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt_unloadmodule.c binfmt: Replace all nx_ API with file_ API 2021-07-06 11:18:13 +09:00
binfmt_unregister.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt.h env_dup: Fix copying of env between address environments 2022-04-21 18:38:37 +08:00
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-20 14:56:37 +03:00
Kconfig Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-05 19:45:24 +02:00
Makefile binfmt/elf: add bare metal coredump support 2021-11-23 20:48:00 -06:00
nxflat.c binfmt/elf: add bare metal coredump support 2021-11-23 20:48:00 -06:00