From 46cd8f9664252105de3298ea2b7f10ce7d5c4f70 2018-12-01 10:29:59 From: Florian Kinder Date: 2018-12-01 10:29:59 Subject: [PATCH] Fixed malloc_trim --- diff --git a/libtransport/UserManager.cpp b/libtransport/UserManager.cpp index c9628676552b07f811254557c2609292173e4583..978e22c745db8163ca46d43ea2154cef7e2f1fbc 100644 --- a/libtransport/UserManager.cpp +++ b/libtransport/UserManager.cpp @@ -125,10 +125,12 @@ void UserManager::removeUser(User *user, bool onUserBehalf) { #ifndef WIN32 #ifndef __FreeBSD__ #ifndef __MACH__ +#if defined (__GLIBC__) malloc_trim(0); #endif #endif #endif +#endif // VALGRIND_DO_LEAK_CHECK; }