summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-06-14 18:18:53 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-06-14 18:18:53 +0200
commit488d0aaaa2a6d55e016d6b5b097cb3e20e49e191 (patch)
tree41bfe0b9e03f22bcba3d19a40dba1a6477034b95 /runtime
parentba00396eee5b8f8717639da396b010631ad5baa7 (diff)
downloadrsyslog-488d0aaaa2a6d55e016d6b5b097cb3e20e49e191.tar.gz
rsyslog-488d0aaaa2a6d55e016d6b5b097cb3e20e49e191.tar.xz
rsyslog-488d0aaaa2a6d55e016d6b5b097cb3e20e49e191.zip
fixing memory leaks in expression-based filters
most recently added by re_match() function
Diffstat (limited to 'runtime')
-rw-r--r--runtime/rule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/rule.c b/runtime/rule.c
index 96bf2c2f..254f2f10 100644
--- a/runtime/rule.c
+++ b/runtime/rule.c
@@ -335,6 +335,8 @@ CODESTARTobjDestruct(rule)
rsCStrRegexDestruct(&pThis->f_filterData.prop.regex_cache);
if(pThis->f_filterData.prop.propName != NULL)
es_deleteStr(pThis->f_filterData.prop.propName);
+ } else if(pThis->f_filter_type == FILTER_EXPR) {
+ cnfexprDestruct(pThis->f_filterData.expr);
}
#warning: need to destroy expression based filter!