summaryrefslogtreecommitdiffstats
path: root/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-04 16:52:56 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-04 16:52:56 +0000
commite41c0854dac685047dba1107b097bf674e740131 (patch)
treeb0257b48b40e707b65a1c3ec02de42d95928b45d /msg.c
parent3b8457d1da7f81f9d5c48ff9f1d84cb838942803 (diff)
downloadrsyslog-e41c0854dac685047dba1107b097bf674e740131.tar.gz
rsyslog-e41c0854dac685047dba1107b097bf674e740131.tar.xz
rsyslog-e41c0854dac685047dba1107b097bf674e740131.zip
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...).
Diffstat (limited to 'msg.c')
-rw-r--r--msg.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/msg.c b/msg.c
index f6e015ac..8c02ed18 100644
--- a/msg.c
+++ b/msg.c
@@ -135,11 +135,9 @@ msg_t* MsgConstruct(void)
rsRetVal MsgDestruct(msg_t * pM)
{
assert(pM != NULL);
- dbgprintf("MsgDestruct\t0x%lx, Ref now: %d\n", (unsigned long)pM, pM->iRefCount - 1);
/* DEV Debugging only ! dbgprintf("MsgDestruct\t0x%lx, Ref now: %d\n", (unsigned long)pM, pM->iRefCount - 1); */
if(--pM->iRefCount == 0)
{
- dbgprintf("MsgDestruct\t0x%lx, RefCount now 0, doing DESTROY\n", (unsigned long)pM);
/* DEV Debugging Only! dbgprintf("MsgDestruct\t0x%lx, RefCount now 0, doing DESTROY\n", (unsigned long)pM); */
if(pM->pszUxTradMsg != NULL)
free(pM->pszUxTradMsg);