From d29e9e3487b60f21b4fa2614651d6bc606a90e55 Mon Sep 17 00:00:00 2001 From: Michael Sterrett Date: Thu, 22 Mar 2012 15:13:04 +0000 Subject: add upstream patch for memory leak caused by messages that couldn't be flushed right away. (Portage version: 2.1.10.49/cvs/Linux x86_64) --- app-admin/syslog-ng/files/syslog-ng-3.3.4-memleak.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app-admin/syslog-ng/files/syslog-ng-3.3.4-memleak.patch (limited to 'app-admin/syslog-ng/files') diff --git a/app-admin/syslog-ng/files/syslog-ng-3.3.4-memleak.patch b/app-admin/syslog-ng/files/syslog-ng-3.3.4-memleak.patch new file mode 100644 index 000000000000..e0aee5cffd78 --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng-3.3.4-memleak.patch @@ -0,0 +1,13 @@ +diff --git a/lib/logwriter.c b/lib/logwriter.c +index 1c4f1c7..4411826 100644 +--- a/lib/logwriter.c ++++ b/lib/logwriter.c +@@ -1016,7 +1016,7 @@ struct _LogWriter + { + /* push back to the queue */ + log_queue_push_head(self->queue, lm, &path_options); +- ++ log_msg_unref(lm); + msg_set_context(NULL); + log_msg_refcache_stop(); + break; -- cgit v1.2.3-65-gdbad