Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-659

Incorrect memory management in LinuxPlatformUtils.cpp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • Utilities
    • None
    • Operating System: Linux
      Platform: All
    • 13437

    Description

      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.

      Attachments

        Activity

          People

            tng@ca.ibm.com Tinny Ng
            zell@best.com Adam Zell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: