1
mirror of https://github.com/monero-project/monero synced 2024-10-31 00:46:41 +01:00

Merge pull request #3696

b1a9e97b slow-hash: fix memory leak for Windows /karbowanec#41 (aivve)
This commit is contained in:
Riccardo Spagni 2018-04-28 22:39:37 +02:00
commit b085e11b52
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

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