diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-04 17:04:54 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-04 17:04:54 +0000 |
commit | 26000d7bf153606fcfe6f1665ff7b441348a20f1 (patch) | |
tree | e6bc993081bbbdd6e11b786c31cbad149df70baa /syslogd.c | |
parent | c7173e592773e73ebf3e005402ffdb347b555d5f (diff) | |
download | rsyslog-26000d7bf153606fcfe6f1665ff7b441348a20f1.tar.gz rsyslog-26000d7bf153606fcfe6f1665ff7b441348a20f1.tar.xz rsyslog-26000d7bf153606fcfe6f1665ff7b441348a20f1.zip |
bugfix: segfault with expression-based filters - so far untested
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1053,10 +1053,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; |