summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/syslogd.c b/syslogd.c
index bb0526c7..13ff8960 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -1868,6 +1868,7 @@ msgConsumer(void *pUsr)
assert(pMsg != NULL);
processMsg(pMsg);
+ MsgDestruct(pMsg);
return RS_RET_OK;
}
@@ -2339,12 +2340,6 @@ logmsg(int pri, msg_t *pMsg, int flags)
pMsg->msgFlags = flags;
queueEnqObj(pMsgQueue, (void*) pMsg);
-#if 0
- CHKiRet_Hdlr(queueEnqObj(pMsgQueue, (void*) pMsg)) {
- /* if we have an error return, the pMsg was not destructed */
- MsgDestruct(pMsg);
- }
-#endif
}