summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-19 14:07:10 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-19 14:07:10 +0000
commit47aab374d40c05cbb7a4ceb2a4236cb65a399c3a (patch)
treeccd3d7cff29b9033c274fcf72771aa50cf3aec74 /syslogd.c
parent296a9b0f0d1a1f6fb45d9741c5bcd32941250b3c (diff)
downloadrsyslog-47aab374d40c05cbb7a4ceb2a4236cb65a399c3a.tar.gz
rsyslog-47aab374d40c05cbb7a4ceb2a4236cb65a399c3a.tar.xz
rsyslog-47aab374d40c05cbb7a4ceb2a4236cb65a399c3a.zip
- added ctok class (the config tokenizer)
- done stage work to begin implement tokenizer
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/syslogd.c b/syslogd.c
index 21975777..d3ad9fbd 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -168,6 +168,7 @@
#include "wti.h"
#include "wtp.h"
#include "expr.h"
+#include "ctok.h"
#include "conf.h"
/* We define our own set of syslog defintions so that we
@@ -997,6 +998,9 @@ selectorDestruct(void *pVal)
rsCStrDestruct(pThis->f_filterData.prop.pCSPropName);
if(pThis->f_filterData.prop.pCSCompValue != NULL)
rsCStrDestruct(pThis->f_filterData.prop.pCSCompValue);
+ } else if(pThis->f_filter_type == FILTER_EXPR) {
+ if(pThis->f_filterData.f_expr != NULL)
+ exprDestruct(&pThis->f_filterData.f_expr);
}
llDestroy(&pThis->llActList);
@@ -3408,12 +3412,13 @@ static rsRetVal InitGlobalClasses(void)
{
DEFiRet;
- CHKiRet(objClassInit()); /* *THIS* *MUST* always be the first class initilizere called! */
+ CHKiRet(objClassInit()); /* *THIS* *MUST* always be the first class initilizer being called! */
CHKiRet(msgClassInit());
CHKiRet(strmClassInit());
CHKiRet(wtiClassInit());
CHKiRet(wtpClassInit());
CHKiRet(queueClassInit());
+ CHKiRet(ctokClassInit());
CHKiRet(exprClassInit());
finalize_it: