diff --git a/src/lib/data_mgr/SecureAllocator.h b/src/lib/data_mgr/SecureAllocator.h index 71dc80c7b..e440767cc 100644 --- a/src/lib/data_mgr/SecureAllocator.h +++ b/src/lib/data_mgr/SecureAllocator.h @@ -122,7 +122,7 @@ template class SecureAllocator #ifndef _WIN32 free(r); #else - VirtualFree((const void*) r, MEM_RELEASE); + VirtualFree((const void*) r, 0, MEM_RELEASE); #endif return NULL; @@ -173,7 +173,7 @@ template class SecureAllocator #ifndef _WIN32 free(p); #else - VirtualFree((const void*) r, MEM_RELEASE); + VirtualFree((const void*) p, 0, MEM_RELEASE); #endif #else // Release the memory diff --git a/src/lib/data_mgr/salloc.cpp b/src/lib/data_mgr/salloc.cpp index 0bd423804..5ab4d95f7 100644 --- a/src/lib/data_mgr/salloc.cpp +++ b/src/lib/data_mgr/salloc.cpp @@ -71,7 +71,7 @@ void* salloc(size_t len) #ifndef _WIN32 free(ptr); #else - VirtualFree((const void*) pre, MEM_RELEASE); + VirtualFree((const void*) pre, 0, MEM_RELEASE); #endif return NULL; @@ -116,7 +116,7 @@ void sfree(void* ptr) #ifndef _WIN32 munlock((const void*) ptr, len); #else - VirtualFree((const void*) pre, MEM_RELEASE); + VirtualFree((const void*) pre, 0, MEM_RELEASE); #endif #endif // SENSITIVE_NON_PAGED