diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-09-20 16:54:54 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-09-20 16:54:54 +0000 |
commit | 7fc7824b866ef7657ba52e8d7bc806d981d73811 (patch) | |
tree | fbfd2c943eedb1c6c28902a5197b2eb0f6c698a2 /msg.c | |
parent | c351fdf5397027aa6e52d2dc69f02b4cd436450b (diff) | |
download | rsyslog-7fc7824b866ef7657ba52e8d7bc806d981d73811.tar.gz rsyslog-7fc7824b866ef7657ba52e8d7bc806d981d73811.tar.xz rsyslog-7fc7824b866ef7657ba52e8d7bc806d981d73811.zip |
code cleanup
Diffstat (limited to 'msg.c')
-rw-r--r-- | msg.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -88,7 +88,6 @@ void MsgDestruct(msg_t * pM) { assert(pM != NULL); /* DEV Debugging only ! dbgprintf("MsgDestruct\t0x%x, Ref now: %d\n", (int)pM, pM->iRefCount - 1); */ - MsgLock(); if(--pM->iRefCount == 0) { /* DEV Debugging Only! dbgprintf("MsgDestruct\t0x%x, RefCount now 0, doing DESTROY\n", (int)pM); */ @@ -130,13 +129,14 @@ void MsgDestruct(msg_t * pM) rsCStrDestruct(pM->pCSProgName); if(pM->pCSStrucData != NULL) rsCStrDestruct(pM->pCSStrucData); + if(pM->pCSAPPNAME != NULL) + rsCStrDestruct(pM->pCSAPPNAME); if(pM->pCSPROCID != NULL) rsCStrDestruct(pM->pCSPROCID); if(pM->pCSMSGID != NULL) rsCStrDestruct(pM->pCSMSGID); free(pM); } - MsgUnlock(); } @@ -1661,7 +1661,7 @@ char *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe, *pB++ = szCCEsc[i]; } else { *pB++ = *pRes; - } + } ++pRes; } *pB = '\0'; |