[SSSD] [PATCH] UTIL: Free log message when using journald
Jakub Hrozek
jhrozek at redhat.com
Mon Oct 21 09:01:44 UTC 2013
I was exercising sssd with valgrind when looking for #1020945 and found
this leak.
-------------- next part --------------
>From 3bde2833eca1fc280214da03f067e3df63040899 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Sun, 20 Oct 2013 16:52:06 +0200
Subject: [PATCH 2/3] UTIL: Free log message when using journald
---
src/util/sss_log.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/util/sss_log.c b/src/util/sss_log.c
index 5be9e7f2bc1486d83393d2d105c1a73322d7f6f1..b6b922785b03f8d9673aebdeb33a83c3f6b14076 100644
--- a/src/util/sss_log.c
+++ b/src/util/sss_log.c
@@ -88,6 +88,8 @@ void sss_log(int priority, const char *format, ...)
"SYSLOG_FACILITY=%i", LOG_FAC(LOG_DAEMON),
"SYSLOG_IDENTIFIER=%s", debug_prg_name,
NULL);
+
+ free(message);
}
#else /* WITH_JOURNALD */
--
1.8.3.1
More information about the sssd-devel
mailing list