summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/memory_util.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/common/memory_util.cpp b/src/common/memory_util.cpp
index fc6696a36..07c7f79c8 100644
--- a/src/common/memory_util.cpp
+++ b/src/common/memory_util.cpp
@@ -121,11 +121,8 @@ void FreeMemoryPages(void* ptr, size_t size)
121 if (ptr) 121 if (ptr)
122 { 122 {
123#ifdef _WIN32 123#ifdef _WIN32
124
125 if (!VirtualFree(ptr, 0, MEM_RELEASE)) 124 if (!VirtualFree(ptr, 0, MEM_RELEASE))
126 LOG_ERROR(Common_Memory, "FreeMemoryPages failed!\n%s", GetLastErrorMsg()); 125 LOG_ERROR(Common_Memory, "FreeMemoryPages failed!\n%s", GetLastErrorMsg());
127 ptr = nullptr; // Is this our responsibility?
128
129#else 126#else
130 munmap(ptr, size); 127 munmap(ptr, size);
131#endif 128#endif