Fix for win64 systems, hopefully

This commit is contained in:
Jonathan "Duke" Leto
2020-09-23 12:51:37 -07:00
parent edb0f4be90
commit 7835fbd341

View File

@@ -2491,7 +2491,8 @@ void CWallet::DeleteTransactions(std::vector<uint256> &removeTxs) {
return;
}
}
#if defined(__GLIBC__)
//TODO: the build system should check for malloc_trim support
#if defined(__unix__)
malloc_trim(0);
#else
// On Mac and Win memory isn't kept back upon vector or list member erase, different garbage collector strategy. No need to force trimming.