Skip to content

Commit 4274722

Browse files
authored
Do not close file after mmap (Windows version) (#1034)
1 parent e9298af commit 4274722

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llama_util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ struct llama_mmap {
202202

203203
HANDLE hMapping = CreateFileMappingA(hFile, NULL, PAGE_READONLY, 0, 0, NULL);
204204
DWORD error = GetLastError();
205-
CloseHandle(hFile);
206205

207206
if (hMapping == NULL) {
208207
throw format("CreateFileMappingA failed: %s", llama_format_win_err(error).c_str());

0 commit comments

Comments
 (0)