diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2019-04-06 16:40:34 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2019-04-06 17:19:56 +0000 |
commit | 6beec712cebc7f39e7795193d74f6aaf67265b52 (patch) | |
tree | 56c069ea21b23d20a75a275c074e3826d935854d /community/gvm-libs/malloc-trim.patch | |
parent | 9392d6e920277f8db1e3da3f12fd6fd4fd1e051a (diff) |
community/gvm-libs: upgrade to 10.0.0
Renamed from openvas-libraries, removed unused patch
Diffstat (limited to 'community/gvm-libs/malloc-trim.patch')
-rw-r--r-- | community/gvm-libs/malloc-trim.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/community/gvm-libs/malloc-trim.patch b/community/gvm-libs/malloc-trim.patch new file mode 100644 index 00000000000..fb566b50b02 --- /dev/null +++ b/community/gvm-libs/malloc-trim.patch @@ -0,0 +1,24 @@ +diff --git a/base/hosts.c b/base/hosts.c +index 74f5d92..1073e2c 100644 +--- a/base/hosts.c ++++ b/base/hosts.c +@@ -1013,7 +1013,9 @@ gvm_hosts_deduplicate (gvm_hosts_t *hosts) + hosts->count -= duplicates; + hosts->removed += duplicates; + hosts->current = 0; ++#ifdef __GLIBC__ + malloc_trim (0); ++#endif + } + + /** +@@ -1208,7 +1210,9 @@ gvm_hosts_new_with_max (const gchar *hosts_str, unsigned int max_hosts) + gvm_hosts_deduplicate (hosts); + + g_strfreev (split); ++#ifdef __GLIBC__ + malloc_trim (0); ++#endif + return hosts; + } + |