aboutsummaryrefslogtreecommitdiff
path: root/llama_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'llama_util.h')
-rwxr-xr-xllama_util.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/llama_util.h b/llama_util.h
index d2110eb..c92c0cc 100755
--- a/llama_util.h
+++ b/llama_util.h
@@ -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));
}