aboutsummaryrefslogtreecommitdiffstats
path: root/community/greenbone-security-assistant/001-malloc-trim.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-03-08 08:01:50 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-03-08 08:01:50 +0000
commita69d14d8ccfd9da393c59b1d91fae8193ba39d39 (patch)
tree3adb3fbeee4b126d9a6542046a778e7367b71a89 /community/greenbone-security-assistant/001-malloc-trim.patch
parent052dea00bb137fd0347d3f90e315a9894145fd70 (diff)
downloadaports-a69d14d8ccfd9da393c59b1d91fae8193ba39d39.tar.bz2
aports-a69d14d8ccfd9da393c59b1d91fae8193ba39d39.tar.xz
community/greenbone-security-assistant: upgrade to 7.0.2
Diffstat (limited to 'community/greenbone-security-assistant/001-malloc-trim.patch')
-rw-r--r--community/greenbone-security-assistant/001-malloc-trim.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/community/greenbone-security-assistant/001-malloc-trim.patch b/community/greenbone-security-assistant/001-malloc-trim.patch
new file mode 100644
index 0000000000..2d64f11178
--- /dev/null
+++ b/community/greenbone-security-assistant/001-malloc-trim.patch
@@ -0,0 +1,16 @@
+diff --git a/src/gsad_base.c b/src/gsad_base.c
+index 15433f9..6500902 100644
+--- a/src/gsad_base.c
++++ b/src/gsad_base.c
+@@ -312,8 +312,9 @@ xsl_transform_with_stylesheet (const char *xml_text,
+
+ xsltFreeStylesheet (cur);
+ xmlFreeDoc (res);
++#ifdef __GLIBC__
+ malloc_trim (0);
+-
++#endif
+ return (char *) doc_txt_ptr;
+ #else
+ int content_fd;
+