diff options
author | Ivan Komarov <Ivan.Komarov@dfyz.info> | 2023-04-18 03:15:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-18 03:15:50 +0200 |
commit | 42747220b4cac548b6e3059b66b3e960b517cfa4 (patch) | |
tree | 5e1e872a2fa7c4bee8e558c6319d7fb419aa36a3 | |
parent | e9298af3896b536d0c6d740447dc764e56b22102 (diff) |
Do not close file after mmap (Windows version) (#1034)
-rwxr-xr-x | llama_util.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llama_util.h b/llama_util.h index ee9b2a6..eba1465 100755 --- a/llama_util.h +++ b/llama_util.h @@ -202,7 +202,6 @@ struct llama_mmap { HANDLE hMapping = CreateFileMappingA(hFile, NULL, PAGE_READONLY, 0, 0, NULL); DWORD error = GetLastError(); - CloseHandle(hFile); if (hMapping == NULL) { throw format("CreateFileMappingA failed: %s", llama_format_win_err(error).c_str()); |