aports/community/greenbone-security-assistant/001-malloc-trim.patch
2017-03-08 08:01:50 +00:00

17 lines
353 B
Diff

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;