mirror of
https://github.com/monero-project/monero.git
synced 2026-01-26 22:34:39 +01:00
slow-hash: fix memory leak for Windows /karbowanec#41
This commit is contained in:
@@ -524,7 +524,7 @@ void slow_hash_free_state(void)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||||
VirtualFree(hp_state, MEMORY, MEM_RELEASE);
|
VirtualFree(hp_state, 0, MEM_RELEASE);
|
||||||
#else
|
#else
|
||||||
munmap(hp_state, MEMORY);
|
munmap(hp_state, MEMORY);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user