mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
greenbone-nvt-sync now runs as gvm user greenbone-scapdata-sync and greenbone-certdata-sync as root Fixed an issue with shipped redis config,who were putting the db in the wrong path Building with openvas-smb too
25 lines
581 B
Diff
25 lines
581 B
Diff
diff --git a/src/pluginscheduler.c b/src/pluginscheduler.c
|
|
index 069b110..8e0f1f7 100644
|
|
--- a/src/pluginscheduler.c
|
|
+++ b/src/pluginscheduler.c
|
|
@@ -305,7 +305,9 @@ plugins_scheduler_init (const char *plugins_list, int autoload,
|
|
plugins_scheduler_free (ret);
|
|
return NULL;
|
|
}
|
|
+#ifdef __GLIBC__
|
|
malloc_trim (0);
|
|
+#endif
|
|
return ret;
|
|
}
|
|
|
|
@@ -407,7 +409,9 @@ scheduler_phase_cleanup (plugins_scheduler_t sched, int start, int end)
|
|
element = element->next;
|
|
}
|
|
}
|
|
+#ifdef __GLIBC__
|
|
malloc_trim (0);
|
|
+#endif
|
|
}
|
|
|
|
struct scheduler_plugin *
|