Explicitly test for malloc_trim() in configure

This commit is contained in:
Jean-Francois Dockes
2020-02-25 16:45:29 +01:00
parent 38dfa5f841
commit 25a5f3a7e0
3 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -52,9 +52,9 @@ public:
// malloc_trim() and mallopt() doc seems to be a bit
// misleading, there is probably a frag size under which
// free() does not try to malloc_trim() at all
#ifndef _WIN32
#ifdef HAVE_MALLOC_TRIM
malloc_trim(0);
#endif
#endif /* HAVE_MALLOC_TRIM */
}
}