You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/10/09 05:53:39 UTC

DO NOT REPLY [Bug 13437] New: - Incorrect memory management in LinuxPlatformUtils.cpp

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13437>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13437

Incorrect memory management in LinuxPlatformUtils.cpp

           Summary: Incorrect memory management in LinuxPlatformUtils.cpp
           Product: Xerces-C++
           Version: 2.1.0
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Utilities
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: zell@best.com


diff -Naur xerces-c-
src2_1_0/src/xercesc/util/Platforms/Linux/LinuxPlatformUtils.cpp 
xerces_c/src/xercesc/util/Platforms/Linux/Linux
PlatformUtils.cpp
--- xerces-c-src2_1_0/src/xercesc/util/Platforms/Linux/LinuxPlatformUtils.cpp   
Tue Aug 27 00:24:36 2002
+++ xerces_c/src/xercesc/util/Platforms/Linux/LinuxPlatformUtils.cpp    Tue 
Oct  8 19:57:49 2002
@@ -663,7 +663,7 @@
             ThrowXML(XMLPlatformUtilsException,
                      XMLExcepts::Mutex_CouldNotDestroy);
         }
-        delete mtxHandle;
+        delete (pthread_mutex_t*) mtxHandle;
     }
 }

The effects of deleting a void * are undefined.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org