diff --git a/CMakeLists.txt b/CMakeLists.txt index 46ad3bd4..282faa87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,6 +134,7 @@ else() "${SOURCES_OS}" src/App_unix.cpp src/common/Platform_unix.cpp + src/Mem_unix.cpp src/crypto/common/VirtualMemory_unix.cpp ) diff --git a/src/crypto/common/VirtualMemory_unix.cpp b/src/crypto/common/VirtualMemory_unix.cpp index b40a9c7b..9ae2bdf3 100644 --- a/src/crypto/common/VirtualMemory_unix.cpp +++ b/src/crypto/common/VirtualMemory_unix.cpp @@ -74,7 +74,7 @@ void xmrig::VirtualMemory::flushInstructionCache(void *p, size_t size) void xmrig::VirtualMemory::freeLargePagesMemory(void *p, size_t size) { - munmap(memory, size); + munmap(p, size); }