summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-11 12:22:49 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-11 12:22:49 +0200
commit9fa59604e94f72225180e5fe28d18c4ec3374d61 (patch)
treeb36cdfe6438c73b0bce8e097dfe7900eec02f35c
parentd91e8c31a1e342eb15b0839b9e721730fcad0549 (diff)
downloadrsyslog-9fa59604e94f72225180e5fe28d18c4ec3374d61.tar.gz
rsyslog-9fa59604e94f72225180e5fe28d18c4ec3374d61.tar.bz2
rsyslog-9fa59604e94f72225180e5fe28d18c4ec3374d61.zip
bugfixes in regards to action()
- bugfix: small memory leak when processing action() statements - bugfix: unknown action() parameters were not reported
-rw-r--r--ChangeLog2
-rw-r--r--grammar/rainerscript.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 30f41c84..2d5d34f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@ Version 7.1.10 [beta] 2012-10-11
- bugfix: small memory leak with string-type templates
- bugfix: small memory leak when template was specified in omfile
- bugfix: some config processing warning messages were treated as errors
+ - bugfix: small memory leak when processing action() statements
+ - bugfix: unknown action() parameters were not reported
---------------------------------------------------------------------------
Version 7.1.9 [beta] 2012-10-09
- bugfix: comments inside objects (e.g. action()) were not properly handled
diff --git a/grammar/rainerscript.c b/grammar/rainerscript.c
index a98277af..be568238 100644
--- a/grammar/rainerscript.c
+++ b/grammar/rainerscript.c
@@ -2203,6 +2203,8 @@ cnfstmtNewAct(struct nvlst *lst)
modGetName(cnfstmt->d.act->pMod));
namebuf[255] = '\0'; /* be on safe side */
cnfstmt->printable = (uchar*)strdup(namebuf);
+ nvlstChkUnused(lst);
+ nvlstDestruct(lst);
done: return cnfstmt;
}