aboutsummaryrefslogtreecommitdiffstats
path: root/community/greenbone-security-assistant/001-malloc-trim.patch
blob: 2d64f11178532380663eabc8a3c9eb3fe1e39f4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;