summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-10-01 19:01:53 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-10-01 19:01:53 +0200
commit925bea71772a23bc184a1da554fe310f39103b0c (patch)
treee16c5da3e480014f90bb0d590a4011a3cdb92ae1 /runtime
parente30fe2842e3ce9f06098c18f0f962596059684ca (diff)
downloadrsyslog-925bea71772a23bc184a1da554fe310f39103b0c.tar.gz
rsyslog-925bea71772a23bc184a1da554fe310f39103b0c.tar.xz
rsyslog-925bea71772a23bc184a1da554fe310f39103b0c.zip
bugfix: segfault when main queue was in direct mode
Diffstat (limited to 'runtime')
-rw-r--r--runtime/msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index d5e1fde9..6c1b9ff3 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -342,8 +342,8 @@ CODESTARTobjDestruct(msg)
MsgUnlock(pThis);
funcDeleteMutex(pThis);
} else {
- pThis = NULL; /* tell framework not to destructing the object! */
MsgUnlock(pThis);
+ pThis = NULL; /* tell framework not to destructing the object! */
}
ENDobjDestruct(msg)