diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-04 16:52:56 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-04 16:52:56 +0000 |
commit | e41c0854dac685047dba1107b097bf674e740131 (patch) | |
tree | b0257b48b40e707b65a1c3ec02de42d95928b45d /msg.c | |
parent | 3b8457d1da7f81f9d5c48ff9f1d84cb838942803 (diff) | |
download | rsyslog-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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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); |