diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-04 17:09:15 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-04 17:09:15 +0000 |
commit | f4803196d7e215b26b29dd68e7d309792c104844 (patch) | |
tree | fa56a1a9172aa8c3a47d902ca00f1578318d15fd | |
parent | 0d5d42c52228964d76996c0e58fdf69258436716 (diff) | |
download | rsyslog-f4803196d7e215b26b29dd68e7d309792c104844.tar.gz rsyslog-f4803196d7e215b26b29dd68e7d309792c104844.tar.xz rsyslog-f4803196d7e215b26b29dd68e7d309792c104844.zip |
bugfix: segfault in expression-based filter - so far untested
-rw-r--r-- | syslogd.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |