summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-04 17:09:15 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-04 17:09:15 +0000
commitf4803196d7e215b26b29dd68e7d309792c104844 (patch)
treefa56a1a9172aa8c3a47d902ca00f1578318d15fd /syslogd.c
parent0d5d42c52228964d76996c0e58fdf69258436716 (diff)
downloadrsyslog-f4803196d7e215b26b29dd68e7d309792c104844.tar.gz
rsyslog-f4803196d7e215b26b29dd68e7d309792c104844.tar.xz
rsyslog-f4803196d7e215b26b29dd68e7d309792c104844.zip
bugfix: segfault in expression-based filter - so far untested
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/syslogd.c b/syslogd.c
index 904bdbd3..cd8476d4 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -1056,10 +1056,11 @@ static rsRetVal shouldProcessThisMessage(selector_t *f, msg_t *pMsg, int *bProce
finalize_it:
/* destruct in any case, not just on error, but it makes error handling much easier */
- if(pVM != NULL) {
- var.Destruct(&pResult);
+ if(pVM != NULL)
vm.Destruct(&pVM);
- }
+
+ if(pResult != NULL)
+ var.Destruct(&pResult);
*bProcessMsg = bRet;
RETiRet;