Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Do not close file after mmap (Windows version)
  • Loading branch information
dfyz committed Apr 18, 2023
commit bf1a24aceb28f27312f3f883f0208913af647276
1 change: 0 additions & 1 deletion llama_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down