diff options
Diffstat (limited to 'meta-oe/recipes-support/syslog-ng/files/free-global-LogTemplateOptions.patch')
-rw-r--r-- | meta-oe/recipes-support/syslog-ng/files/free-global-LogTemplateOptions.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/meta-oe/recipes-support/syslog-ng/files/free-global-LogTemplateOptions.patch b/meta-oe/recipes-support/syslog-ng/files/free-global-LogTemplateOptions.patch deleted file mode 100644 index d439a2607..000000000 --- a/meta-oe/recipes-support/syslog-ng/files/free-global-LogTemplateOptions.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From 3ef6ca8044260c77118edca6dead807a2edcb5ef Mon Sep 17 00:00:00 2001 | ||
2 | From: Balazs Scheidler <bazsi@balabit.hu> | ||
3 | Date: Thu, 31 Oct 2013 13:20:12 +0100 | ||
4 | Subject: [PATCH] cfg: free global LogTemplateOptions | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | |||
8 | This fixes a potential memory leak when global template specific | ||
9 | options were specified, such as local-time-zone(), send-time-zone() etc. | ||
10 | |||
11 | Signed-off-by: Balazs Scheidler <bazsi@balabit.hu> | ||
12 | --- | ||
13 | lib/cfg.c | 1 + | ||
14 | 1 file changed, 1 insertion(+) | ||
15 | |||
16 | diff --git a/lib/cfg.c b/lib/cfg.c | ||
17 | index 7f040b8..adeaaf8 100644 | ||
18 | --- a/lib/cfg.c | ||
19 | +++ b/lib/cfg.c | ||
20 | @@ -411,6 +411,7 @@ cfg_free(GlobalConfig *self) | ||
21 | g_free(self->proto_template_name); | ||
22 | log_template_unref(self->file_template); | ||
23 | log_template_unref(self->proto_template); | ||
24 | + log_template_options_destroy(&self->template_options); | ||
25 | |||
26 | if (self->bad_hostname_compiled) | ||
27 | regfree(&self->bad_hostname); | ||
28 | -- | ||
29 | 1.8.4.1 | ||
30 | |||