From 47aab374d40c05cbb7a4ceb2a4236cb65a399c3a Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 19 Feb 2008 14:07:10 +0000 Subject: - added ctok class (the config tokenizer) - done stage work to begin implement tokenizer --- syslogd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'syslogd.c') 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: -- cgit v1.2.3