mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2024-11-09 23:29:44 +00:00
Fix: do not close file on mmap (#1017)
This commit is contained in:
parent
3173a62eb9
commit
47f61aaa5f
1 changed files with 0 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue