aboutsummaryrefslogtreecommitdiffstats
path: root/community/greenbone-security-assistant/001-malloc-trim.patch
diff options
context:
space:
mode:
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;
+