aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-09-11 23:16:34 -0400
committerLioncash <mathew1800@gmail.com>2015-09-11 23:16:34 -0400
commitf28802e883a40d9a1f959cd8eab1b8b208fe6c53 (patch)
treec8e5abda9387898fa9792ce2d53b078f383b60f9 /src
parent36c2bedcd853eb62b7631409943d57c4f229240d (diff)
memory_util: Remove unnecessary assignment in FreeMemoryPages
Diffstat (limited to 'src')
-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 fc6696a362..07c7f79c8a 100644
--- a/src/common/memory_util.cpp
+++ b/src/common/memory_util.cpp
@@ -121,11 +121,8 @@ void FreeMemoryPages(void* ptr, size_t size)
if (ptr)
{
#ifdef _WIN32
-
if (!VirtualFree(ptr, 0, MEM_RELEASE))
LOG_ERROR(Common_Memory, "FreeMemoryPages failed!\n%s", GetLastErrorMsg());
- ptr = nullptr; // Is this our responsibility?
-
#else
munmap(ptr, size);
#endif