summaryrefslogtreecommitdiff
path: root/src/launchpad_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/launchpad_lib.c')
-rw-r--r--src/launchpad_lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/launchpad_lib.c b/src/launchpad_lib.c
index 7ca5aab..f655ed6 100644
--- a/src/launchpad_lib.c
+++ b/src/launchpad_lib.c
@@ -21,6 +21,7 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/prctl.h>
+#include <malloc.h>
#ifdef _APPFW_FEATURE_LOADER_PRIORITY
#include <sys/time.h>
#include <sys/resource.h>
@@ -351,6 +352,7 @@ static int __before_loop(int argc, char **argv)
if (extra)
bundle_free(extra);
+ malloc_trim(0);
#ifdef _APPFW_FEATURE_LOADER_PRIORITY
res = setpriority(PRIO_PGRP, 0, 0);
if (res == -1) {