meta-openembedded/meta-oe/recipes-support/syslog-ng/files/free-global-LogTemplateOptions.patch
Jackie Huang 1a6e16bcb1 syslog-ng: uprev to 3.5.4.1
- initscript: add status, PIDFILE and xconsole
- syslog-ng.conf: dump the version
- Fix some memory leak problems we found
- Some backport patches
- scl: fix wrong ownership issue
- libnet: add libnet enable option and add it in PACKAGECONFIG
- add HOMEPAGE
- remove INC_PR
- change some config into PACKAGECONFIG
- add PACKAGE syslog-ng-libs to fix QA issue
- use volatiles
- inherit update-rc.d and update-alternative

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-24 15:31:50 +02:00

31 lines
895 B
Diff

From 3ef6ca8044260c77118edca6dead807a2edcb5ef Mon Sep 17 00:00:00 2001
From: Balazs Scheidler <bazsi@balabit.hu>
Date: Thu, 31 Oct 2013 13:20:12 +0100
Subject: [PATCH] cfg: free global LogTemplateOptions
Upstream-Status: Backport
This fixes a potential memory leak when global template specific
options were specified, such as local-time-zone(), send-time-zone() etc.
Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
---
lib/cfg.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/cfg.c b/lib/cfg.c
index 7f040b8..adeaaf8 100644
--- a/lib/cfg.c
+++ b/lib/cfg.c
@@ -411,6 +411,7 @@ cfg_free(GlobalConfig *self)
g_free(self->proto_template_name);
log_template_unref(self->file_template);
log_template_unref(self->proto_template);
+ log_template_options_destroy(&self->template_options);
if (self->bad_hostname_compiled)
regfree(&self->bad_hostname);
--
1.8.4.1