summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-01-28 13:02:45 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-01-28 13:02:45 +0100
commit5453699428b8f5a7dd6ac23abe7b838dd19101b5 (patch)
tree9c220abeabf87e2e2539fcbf7df89c586db39c68
parent35673b12c42429786f6229ff9fcef7001a6b21ab (diff)
downloadrsyslog-5453699428b8f5a7dd6ac23abe7b838dd19101b5.tar.gz
rsyslog-5453699428b8f5a7dd6ac23abe7b838dd19101b5.tar.xz
rsyslog-5453699428b8f5a7dd6ac23abe7b838dd19101b5.zip
fixed copy&paste error
... one should at least compile before comitting - sorry, been so eager to push that out.
-rw-r--r--msg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/msg.c b/msg.c
index 107df1f9..2261593a 100644
--- a/msg.c
+++ b/msg.c
@@ -272,7 +272,7 @@ BEGINobjDestruct(msg) /* be sure to specify the object type also in END and CODE
int currRefCount;
CODESTARTobjDestruct(msg)
/* DEV Debugging only ! dbgprintf("msgDestruct\t0x%lx, Ref now: %d\n", (unsigned long)pM, pM->iRefCount - 1); */
- MsgLock(pM);
+ MsgLock(pThis);
currRefCount = --pThis->iRefCount;
if(currRefCount == 0)
{
@@ -325,10 +325,10 @@ CODESTARTobjDestruct(msg)
rsCStrDestruct(&pThis->pCSPROCID);
if(pThis->pCSMSGID != NULL)
rsCStrDestruct(&pThis->pCSMSGID);
- MsgUnlock(pM);
+ MsgUnlock(pThis);
funcDeleteMutex(pThis);
} else {
- MsgUnlock(pM);
+ MsgUnlock(pThis);
pThis = NULL; /* tell framework not to destructing the object! */
}
ENDobjDestruct(msg)