diff options
author | aivve <maksymivv@gmail.com> | 2018-04-24 18:47:13 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2018-04-24 20:47:29 +0900 |
commit | b1a9e97b2dab7a843571c674b242926d51362a6e (patch) | |
tree | 8c89e8a74bcb0feb4c337a73e7db55aa6444473e /src/crypto/slow-hash.c | |
parent | cryptonote_tx_util: make destinations properly shuffled (diff) | |
download | monero-b1a9e97b2dab7a843571c674b242926d51362a6e.tar.xz |
slow-hash: fix memory leak for Windows /karbowanec#41
Diffstat (limited to 'src/crypto/slow-hash.c')
-rw-r--r-- | src/crypto/slow-hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/slow-hash.c b/src/crypto/slow-hash.c index d7dcbd274..35e98f2f5 100644 --- a/src/crypto/slow-hash.c +++ b/src/crypto/slow-hash.c @@ -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 |