tng         2002/12/02 11:16:26

  Modified:    c/src/xercesc/util/Platforms/FreeBSD
                        FreeBSDPlatformUtils.cpp
  Log:
  [Bug 14723] Memory leak in atomicOpsMutex.  Patch from Adam Zell.
  
  Revision  Changes    Path
  1.6       +5 -2      
xml-xerces/c/src/xercesc/util/Platforms/FreeBSD/FreeBSDPlatformUtils.cpp
  
  Index: FreeBSDPlatformUtils.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/c/src/xercesc/util/Platforms/FreeBSD/FreeBSDPlatformUtils.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- FreeBSDPlatformUtils.cpp  4 Nov 2002 15:13:00 -0000       1.5
  +++ FreeBSDPlatformUtils.cpp  2 Dec 2002 19:16:26 -0000       1.6
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.6  2002/12/02 19:16:26  tng
  + * [Bug 14723] Memory leak in atomicOpsMutex.  Patch from Adam Zell.
  + *
    * Revision 1.5  2002/11/04 15:13:00  tng
    * C++ Namespace Support.
    *
  @@ -582,8 +585,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