From 7835fbd3411100b6f2ff8194c5f15e5dd93427ce Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Wed, 23 Sep 2020 12:51:37 -0700 Subject: [PATCH] Fix for win64 systems, hopefully --- src/wallet/wallet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.