diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-01-28 13:02:45 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-01-28 13:02:45 +0100 |
commit | 5453699428b8f5a7dd6ac23abe7b838dd19101b5 (patch) | |
tree | 9c220abeabf87e2e2539fcbf7df89c586db39c68 /msg.c | |
parent | 35673b12c42429786f6229ff9fcef7001a6b21ab (diff) | |
download | rsyslog-5453699428b8f5a7dd6ac23abe7b838dd19101b5.tar.gz rsyslog-5453699428b8f5a7dd6ac23abe7b838dd19101b5.tar.bz2 rsyslog-5453699428b8f5a7dd6ac23abe7b838dd19101b5.zip |
fixed copy&paste error
... one should at least compile before comitting - sorry, been so
eager to push that out.
Diffstat (limited to 'msg.c')
-rw-r--r-- | msg.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |