malloc_trim does not seem to exist on FreeBSD

This commit is contained in:
Duke
2023-04-06 05:40:30 -07:00
parent 0b68ea2a20
commit b4be7aa19b

View File

@@ -2516,7 +2516,7 @@ void CWallet::DeleteTransactions(std::vector<uint256> &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.