tng 2003/02/06 06:44:14
Modified: c/src/xercesc/util/Platforms/OS390 OS390PlatformUtils.cpp
Log:
[Bug 13437] Incorrect memory management in PlatformUtils
Revision Changes Path
1.7 +3 -3
xml-xerces/c/src/xercesc/util/Platforms/OS390/OS390PlatformUtils.cpp
Index: OS390PlatformUtils.cpp
===================================================================
RCS file:
/home/cvs/xml-xerces/c/src/xercesc/util/Platforms/OS390/OS390PlatformUtils.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- OS390PlatformUtils.cpp 22 Nov 2002 14:57:32 -0000 1.6
+++ OS390PlatformUtils.cpp 6 Feb 2003 14:44:14 -0000 1.7
@@ -1060,11 +1060,11 @@
ThrowXML(XMLPlatformUtilsException, XMLExcepts::Mutex_CouldNotDestroy);
}
if ( (pthread_mutex_t*)mtxHandle)
- delete mtxHandle;
+ delete (pthread_mutex_t*) mtxHandle;
} // __isPosixOn
else {
if ( (int*)mtxHandle)
- delete mtxHandle;
+ delete (int*) mtxHandle;
}
}
void XMLPlatformUtils::lockMutex(void* const mtxHandle)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]