diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 7fe8f21682..5d38f042f9 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -1561,7 +1561,7 @@ void ThreadCleanWalletPassphrase(void* parg) if (nWalletUnlockTime < nMyWakeTime) nWalletUnlockTime = nMyWakeTime; } - free(parg); + delete (int*)parg; return; }