diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index b6548cb42..4ead8000c 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2491,7 +2491,8 @@ void CWallet::DeleteTransactions(std::vector &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.