summaryrefslogtreecommitdiffstats
path: root/grammar
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 /grammar
parentd91e8c31a1e342eb15b0839b9e721730fcad0549 (diff)
downloadrsyslog-9fa59604e94f72225180e5fe28d18c4ec3374d61.tar.gz
rsyslog-9fa59604e94f72225180e5fe28d18c4ec3374d61.tar.xz
rsyslog-9fa59604e94f72225180e5fe28d18c4ec3374d61.zip
bugfixes in regards to action()
- bugfix: small memory leak when processing action() statements - bugfix: unknown action() parameters were not reported
Diffstat (limited to 'grammar')
-rw-r--r--grammar/rainerscript.c2
1 files changed, 2 insertions, 0 deletions
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;
}