summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/syslog-ng/files')
-rw-r--r--app-admin/syslog-ng/files/3.5/syslog-ng-3.5.4.1-memleak.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/app-admin/syslog-ng/files/3.5/syslog-ng-3.5.4.1-memleak.patch b/app-admin/syslog-ng/files/3.5/syslog-ng-3.5.4.1-memleak.patch
new file mode 100644
index 000000000000..566df72de7b0
--- /dev/null
+++ b/app-admin/syslog-ng/files/3.5/syslog-ng-3.5.4.1-memleak.patch
@@ -0,0 +1,19 @@
+From 6a6a442585fcdf534cc448706a1be2d460862bdf Mon Sep 17 00:00:00 2001
+From: Viktor Tusa <tusa@balabit.hu>
+Date: Wed, 26 Mar 2014 17:05:08 +0100
+Subject: [PATCH] value-pairs: Fixed a memory leak in value-pairs.
+
+We should free the elements of the GPtrArray too, not just the GPtrArray.
+
+Signed-off-by: Viktor Tusa <tusa@balabit.hu>
+
+--- lib/value-pairs.c.orig 2014-03-27 18:16:45.492827781 -0400
++++ lib/value-pairs.c 2014-03-27 18:16:56.785426734 -0400
+@@ -651,6 +651,7 @@
+ NULL), so treat that normally. */
+ key = g_strdup(g_ptr_array_index(tokens, tokens->len - 1));
+
++ g_ptr_array_foreach(tokens, g_free, NULL);
+ g_ptr_array_free(tokens, TRUE);
+
+ return key;