mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2024-11-09 23:29:44 +00:00
Do not close file after mmap (Windows version) (#1034)
This commit is contained in:
parent
e9298af389
commit
42747220b4
1 changed files with 0 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue