From cc8ef1a1546548c5d77b06f0726bf16bba5ad77e Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 15 Jul 2009 14:05:39 +0200 Subject: bugfix: memory leak with some input modules --- tools/syslogd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/syslogd.c b/tools/syslogd.c index ade6f1c7..e52a524a 100644 --- a/tools/syslogd.c +++ b/tools/syslogd.c @@ -602,6 +602,8 @@ static inline rsRetVal printline(uchar *hname, uchar *hnameIP, uchar *msg, int f MsgSetRcvFromStr(pMsg, hname, ustrlen(hname), &propFromHost); CHKiRet(MsgSetRcvFromIPStr(pMsg, hnameIP, ustrlen(hnameIP), &propFromHostIP)); MsgSetAfterPRIOffs(pMsg, p - msg); + prop.Destruct(&propFromHost); + prop.Destruct(&propFromHostIP); logmsg(pMsg, flags); -- cgit From 8f06095880c73adb5147b348a4bac428d4863169 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 15 Jul 2009 14:08:04 +0200 Subject: documenting imported bugfix v4-beta was so far unreleased, so it was a bug only here --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6a6d1d92..f5f3940d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,10 @@ --------------------------------------------------------------------------- +Version 4.5.2 [DEVEL] (rgerhards), 2009-07-?? +- bugfix: memory leak with some input modules. Those inputs that + use parseAndSubmitMsg() leak two small memory blocks with every message. + Typically, those process only relatively few messages, so the issue + does most probably not have any effect in practice. +--------------------------------------------------------------------------- Version 4.5.1 [DEVEL] (rgerhards), 2009-07-15 - CONFIG CHANGE: $HUPisRestart default is now "off". We are doing this to support removal of restart-type HUP in v5. -- cgit