:: commit 038eb80822874fcbf1cc07ac5d82a4d5f3e3ecb9

Mintsuki <mintsuki@protonmail.com> — 2026-02-08 17:08

parents: c1fc0c5a96

fs/file: Close file handle in i386 high-alloc path of freadall

diff --git a/common/fs/file.s2.c b/common/fs/file.s2.c
index 68360667..3bc064be 100644
--- a/common/fs/file.s2.c
+++ b/common/fs/file.s2.c
@@ -164,6 +164,7 @@ void *freadall_mode(struct file_handle *fd, uint32_t type, bool allow_high_alloc
                 memcpy_to_64(high_ret + i, pool, count);
             }
             pmm_free(pool, 0x100000);
+            fd->close(fd);
             return &high_ret;
         }
 low_ret:
tab: 248 wrap: offon