slow-hash: fix memory leak for Windows /karbowanec#41

This commit is contained in:
aivve 2018-04-24 18:47:13 +09:00 committed by stoffu
parent eb59f7c563
commit b1a9e97b2d
No known key found for this signature in database
GPG Key ID: 41DAB8343A9EC012

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