Merge pull request #19 from wowario/patch-3

fix memory leak for Windows
This commit is contained in:
jw 2018-04-24 06:30:30 -07:00 committed by GitHub
commit da6964194f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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