summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-10-09 16:49:00 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-10-09 16:49:00 +0200
commit848bd8f9d93c6913d8345b68637b66d2b6ea49d2 (patch)
tree168a2cd93bc7bab2966bd2e5e79fbb4038b01322
parent39766091984b3669767e8742100876ebf8e3ea86 (diff)
parentf35197f1c2136b5e043cdf4776f99b4854bfcc5c (diff)
downloadrsyslog-848bd8f9d93c6913d8345b68637b66d2b6ea49d2.tar.gz
rsyslog-848bd8f9d93c6913d8345b68637b66d2b6ea49d2.tar.xz
rsyslog-848bd8f9d93c6913d8345b68637b66d2b6ea49d2.zip
Merge branch 'v2-stable' into v3-stable
Conflicts: syslogd.c
-rw-r--r--ChangeLog2
-rw-r--r--omfile.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9a457547..bbfbfd00 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -670,6 +670,8 @@ Version 3.10.0 (rgerhards), 2008-01-07
mode
---------------------------------------------------------------------------
Version 2.0.6 V2-STABLE (rgerhards), 2008-??-??
+- bugfix: memory leaks in rsyslogd, primarily in singlethread mode
+ Thanks to Frederico Nunez for providing the fix
- bugfix: copy&paste error lead to dangling if - this caused a very minor
issue with re-formatting a RFC3164 date when the message was invalidly
formatted and had a colon immediately after the date. This was in the
diff --git a/omfile.c b/omfile.c
index 6a53a723..0b16cd57 100644
--- a/omfile.c
+++ b/omfile.c
@@ -296,6 +296,8 @@ int resolveFileSizeLimit(instanceData *pData)
execProg(pCmd, 1, pParams);
+ free(pCmd);
+
pData->fd = open((char*) pData->f_fname, O_WRONLY|O_APPEND|O_CREAT|O_NOCTTY,
pData->fCreateMode);