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 2001/10/22 19:38:05 UTC
DO NOT REPLY [Bug 4342] New: -
Memory leak is SAX parser during validation
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: xerces-c-dev@xml.apache.org
ReportedBy: swilliamson@docucorp.com
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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org