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; }