Merge branch 'master' into concedo

This commit is contained in:
Concedo
2023-04-17 17:34:50 +08:00
-1
View File
@@ -176,7 +176,6 @@ struct llama_mmap {
flags |= MAP_POPULATE;
#endif
addr = mmap(NULL, file->size, PROT_READ, flags, fd, 0);
close(fd);
if (addr == MAP_FAILED) {
throw format("mmap failed: %s", strerror(errno));
}