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:
