Only malloc_trim on unix+windows
This commit is contained in:
@@ -2951,8 +2951,12 @@ void CWallet::DeleteTransactions(std::vector<uint256> &removeTxs) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Miodrag: release memory back to the OS
|
#if defined(__unix__) || defined(_WIN64)
|
||||||
|
// Miodrag: release memory back to the OS
|
||||||
malloc_trim(0);
|
malloc_trim(0);
|
||||||
|
#else
|
||||||
|
//TODO: This doesn't work on Mac
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void CWallet::DeleteWalletTransactions(const CBlockIndex* pindex) {
|
void CWallet::DeleteWalletTransactions(const CBlockIndex* pindex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user