glibc's malloc is very bad about returning memory from the kernel, add a call

to its malloc_trim to prompt it to do so. Reported by Sarunas Valaskevicius.
This commit is contained in:
Nicholas Marriott
2020-10-06 08:18:42 +01:00
parent 847a061e31
commit 680e7a382f
3 changed files with 32 additions and 0 deletions

View File

@ -27,6 +27,10 @@
#include <termios.h>
#include <wchar.h>
#ifdef HAVE_MALLOC_TRIM
#include <malloc.h>
#endif
#ifdef HAVE_UTF8PROC
#include <utf8proc.h>
#endif