From b4be7aa19b56156ec1163838853a874316b0a12a Mon Sep 17 00:00:00 2001 From: Duke Date: Thu, 6 Apr 2023 05:40:30 -0700 Subject: [PATCH] malloc_trim does not seem to exist on FreeBSD --- src/wallet/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 75ca325d0..36a907df5 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2516,7 +2516,7 @@ void CWallet::DeleteTransactions(std::vector &removeTxs) { } } //TODO: the build system should check for malloc_trim support -#if defined(__unix__) +#if defined(__linux__) 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.