From e41c0854dac685047dba1107b097bf674e740131 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 4 Jan 2008 16:52:56 +0000 Subject: moved message destruction back to consumer - the consume should decide what to do with the object. It may pass it on to someone else. So this would have creatd some headache in the future (maybe...). --- syslogd.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'syslogd.c') 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 } -- cgit v1.2.3