:: commit 704d7fe861276742827ed138444272a3b3a7b385

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

parents: 3b9666c864

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