fix memory leak for Windows

This commit is contained in:
wowario
2018-04-24 13:09:26 +03:00
committed by GitHub
parent 785942478b
commit 4d93e66377

View File

@@ -524,7 +524,7 @@ void slow_hash_free_state(void)
else
{
#if defined(_MSC_VER) || defined(__MINGW32__)
VirtualFree(hp_state, MEMORY, MEM_RELEASE);
VirtualFree(hp_state, 0, MEM_RELEASE);
#else
munmap(hp_state, MEMORY);
#endif