summaryrefslogtreecommitdiffstats
path: root/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-09-20 16:54:54 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-09-20 16:54:54 +0000
commit7fc7824b866ef7657ba52e8d7bc806d981d73811 (patch)
treefbfd2c943eedb1c6c28902a5197b2eb0f6c698a2 /msg.c
parentc351fdf5397027aa6e52d2dc69f02b4cd436450b (diff)
downloadrsyslog-7fc7824b866ef7657ba52e8d7bc806d981d73811.tar.gz
rsyslog-7fc7824b866ef7657ba52e8d7bc806d981d73811.tar.xz
rsyslog-7fc7824b866ef7657ba52e8d7bc806d981d73811.zip
code cleanup
Diffstat (limited to 'msg.c')
-rw-r--r--msg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/msg.c b/msg.c
index 20480201..632ef9bd 100644
--- a/msg.c
+++ b/msg.c
@@ -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';