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=4342>.
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=4342

Memory leak is SAX parser during validation

           Summary: Memory leak is SAX parser during validation
           Product: Xerces-C++
           Version: 1.4
          Platform: PC
        OS/Version: Windows 9x
            Status: NEW
          Severity: Major
          Priority: Other
         Component: SAX/SAX2
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


There appears to be a memory leak in the SAX parser during validation.� It 
occurs at the line XMLMutex* tmpMutex = new XMLMutex in the gVAlidatorMutex() 
method of the XMLValidator class (see below):

***** 

static XMLMutex& gValidatorMutex() 
{ 
��� static XMLMutex* validatorMutex = 0; 
��� if (!validatorMutex) 
��� { 
������� XMLMutex* tmpMutex = new XMLMutex; 
������� if (XMLPlatformUtils::compareAndSwap((void**)&validatorMutex, tmpMutex, 
0)) 
������� { 
����������� // Someone beat us to it, so let's clean up ours 
����������� delete tmpMutex; 
������� } 
��� } 
��� return *validatorMutex; 
} 

***** 

tmpMutex appears to never have been deleted if XMLPlatformUtils::compareAndSwap
((void**)&validatorMutex, tmpMutex, 0) returns 0.� If it is deleted by 
XMLPlatformUtils, I don't see it.� Please help.

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

Reply via email to