I was exercising sssd with valgrind when looking for #1020945 and found
this leak.
>From 3bde2833eca1fc280214da03f067e3df63040899 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhro...@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

_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/sssd-devel

Reply via email to