mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08: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:
+1
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user