tng         2002/12/02 11:17:00

  Modified:    c/src/xercesc/util/Platforms/HPUX HPPlatformUtils.cpp
  Log:
  [Bug 14723] Memory leak in atomicOpsMutex.  Patch from Adam Zell.
  
  Revision  Changes    Path
  1.9       +5 -1      xml-xerces/c/src/xercesc/util/Platforms/HPUX/HPPlatformUtils.cpp
  
  Index: HPPlatformUtils.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/c/src/xercesc/util/Platforms/HPUX/HPPlatformUtils.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- HPPlatformUtils.cpp       7 Nov 2002 22:37:51 -0000       1.8
  +++ HPPlatformUtils.cpp       2 Dec 2002 19:17:00 -0000       1.9
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.9  2002/12/02 19:17:00  tng
  + * [Bug 14723] Memory leak in atomicOpsMutex.  Patch from Adam Zell.
  + *
    * Revision 1.8  2002/11/07 22:37:51  peiyongz
    * build -miconv on hpux and linux
    *
  @@ -643,7 +646,8 @@
       // Normally, mutexes are created on first use, but there is a
       // circular dependency between compareAndExchange() and
       // mutex creation that must be broken.
  -    atomicOpsMutex.fHandle = XMLPlatformUtils::makeMutex();
  +    if (atomicOpsMutex.fHandle == 0)
  +        atomicOpsMutex.fHandle = XMLPlatformUtils::makeMutex();
   }
   
   void* XMLPlatformUtils::makeMutex()
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to