Do not close file after mmap (Windows version) (#1034)

pull/1043/head master-4274722
Ivan Komarov 1 year ago committed by GitHub
parent e9298af389
commit 42747220b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save