aboutsummaryrefslogtreecommitdiffstats
path: root/community/openvas/malloc-trim.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2019-10-21 16:32:35 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2019-10-21 20:01:23 +0000
commit70c3390d501495201a01fac9f671f389afbc78aa (patch)
treebe4b96103d5bf1a53f36a3295c1e1b9ccbf175cb /community/openvas/malloc-trim.patch
parent359d30ae8a1c64704634045f8bc27ef4b348a143 (diff)
downloadaports-70c3390d501495201a01fac9f671f389afbc78aa.tar.bz2
aports-70c3390d501495201a01fac9f671f389afbc78aa.tar.xz
community/openvas: renamed from openvas-scanner
Diffstat (limited to 'community/openvas/malloc-trim.patch')
-rw-r--r--community/openvas/malloc-trim.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/community/openvas/malloc-trim.patch b/community/openvas/malloc-trim.patch
new file mode 100644
index 0000000000..367f9c2871
--- /dev/null
+++ b/community/openvas/malloc-trim.patch
@@ -0,0 +1,24 @@
+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 *