mirror of
https://github.com/apache/nuttx.git
synced 2026-10-16 18:49:05 +00:00
binfmt/elf: fix issue of file not closing after being opened.
When opening the file succeeds but reading the file fails in modlib_initialize, this will result in the open file not be closed. Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
This commit is contained in:
parent
a70cc1cca1
commit
af0a384320
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ static int elf_loadbinary(FAR struct binary_s *binp,
|
|||
if (ret != 0)
|
||||
{
|
||||
berr("Failed to initialize to load ELF program binary: %d\n", ret);
|
||||
return ret;
|
||||
goto errout_with_init;
|
||||
}
|
||||
|
||||
/* Load the program binary */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue