From 1ffd54f8343b3154c990b77121f6ca6a098d7975 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Sat, 11 Jan 2020 16:49:04 +0100 Subject: [PATCH] no malloc_trim on windows --- src/internfile/mh_xslt.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/internfile/mh_xslt.cpp b/src/internfile/mh_xslt.cpp index 867a5ac9..3b80fa2c 100644 --- a/src/internfile/mh_xslt.cpp +++ b/src/internfile/mh_xslt.cpp @@ -52,7 +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 malloc_trim(0); +#endif } }