Kaynağa Gözat

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

Ivan Komarov 2 yıl önce
ebeveyn
işleme
42747220b4
1 değiştirilmiş dosya ile 0 ekleme ve 1 silme
  1. 0 1
      llama_util.h

+ 0 - 1
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());