summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
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: