summaryrefslogtreecommitdiffstats
path: root/grammar
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-10-18 10:17:49 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-10-18 10:17:49 +0200
commit82f14c80404fe44e5b02afbaa68a4a2634ff50b9 (patch)
tree049e3f81d0ba2c4a27f25075a577be0d9650347e /grammar
parenteb95af01e8feb4b3b10e600697b8b8f07a693840 (diff)
downloadrsyslog-82f14c80404fe44e5b02afbaa68a4a2634ff50b9.tar.gz
rsyslog-82f14c80404fe44e5b02afbaa68a4a2634ff50b9.tar.bz2
rsyslog-82f14c80404fe44e5b02afbaa68a4a2634ff50b9.zip
fix cosmetic memleak when property filter is disabled
Diffstat (limited to 'grammar')
-rw-r--r--grammar/rainerscript.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/grammar/rainerscript.c b/grammar/rainerscript.c
index ff8eba0c..4defc025 100644
--- a/grammar/rainerscript.c
+++ b/grammar/rainerscript.c
@@ -2698,6 +2698,7 @@ cnfstmtNewPROPFILT(char *propfilt, struct cnfstmt *t_then)
cnfstmt->d.s_propfilt.pCSCompValue = NULL;
if(DecodePropFilter((uchar*)propfilt, cnfstmt) != RS_RET_OK) {
cnfstmt->nodetype = S_NOP; /* disable action! */
+ cnfstmtDestructLst(t_then); /* we do no longer need this */
}
}
return cnfstmt;