diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 2fb192e1e..20e137dc7 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2951,8 +2951,12 @@ void CWallet::DeleteTransactions(std::vector &removeTxs) { return; } } - // Miodrag: release memory back to the OS +#if defined(__unix__) || defined(_WIN64) + // Miodrag: release memory back to the OS malloc_trim(0); +#else + //TODO: This doesn't work on Mac +#endif } void CWallet::DeleteWalletTransactions(const CBlockIndex* pindex) {