mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Revert "binfmt: Fix memory leak in ELF loader"
This reverts commit 23d57be21b.
This commit is contained in:
committed by
Petro Karashchenko
parent
43f0555bfb
commit
aecdcb316b
+2
-3
@@ -277,10 +277,9 @@ static int elf_loadbinary(FAR struct binary_s *binp,
|
||||
up_addrenv_clone(&loadinfo.addrenv, &binp->addrenv);
|
||||
#else
|
||||
binp->alloc[0] = (FAR void *)loadinfo.textalloc;
|
||||
binp->alloc[1] = (FAR void *)loadinfo.dataalloc;
|
||||
#ifdef CONFIG_BINFMT_CONSTRUCTORS
|
||||
binp->alloc[2] = loadinfo.ctoralloc;
|
||||
binp->alloc[3] = loadinfo.dtoralloc;
|
||||
binp->alloc[1] = loadinfo.ctoralloc;
|
||||
binp->alloc[2] = loadinfo.dtoralloc;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user