File: 0018-http_add_missing_free_for_self-body_template.patch

package info (click to toggle)
syslog-ng 3.19.1-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 13,176 kB
  • sloc: ansic: 114,472; makefile: 4,697; sh: 4,391; python: 4,282; java: 4,047; xml: 2,435; yacc: 1,108; lex: 426; perl: 193; awk: 184
file content (22 lines) | stat: -rw-r--r-- 724 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 9632eb8584f791b9ea508ac006a1501875c88b30 Mon Sep 17 00:00:00 2001
From: Antal Nemes <antal.nemes@balabit.com>
Date: Tue, 19 Feb 2019 14:17:46 +0100
Subject: [PATCH] http: add missing free for self->body_template

Signed-off-by: Antal Nemes <antal.nemes@balabit.com>
---
 modules/http/http.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/http/http.c b/modules/http/http.c
index e734d0fb8f..2582df270d 100644
--- a/modules/http/http.c
+++ b/modules/http/http.c
@@ -339,6 +339,7 @@ http_dd_free(LogPipe *s)
   g_string_free(self->delimiter, TRUE);
   g_string_free(self->body_prefix, TRUE);
   g_string_free(self->body_suffix, TRUE);
+  log_template_unref(self->body_template);
 
   curl_global_cleanup();