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 2004/02/18 22:56:10 UTC

DO NOT REPLY [Bug 27052] New: - SchemaAttDef::serialize() leaks memory

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

SchemaAttDef::serialize() leaks memory

           Summary: SchemaAttDef::serialize() leaks memory
           Product: Xerces-C++
           Version: Nightly build (please specify the date)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Validating Parser (Schema) (Xerces 1.5 or up only)
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: David_N_Bertoni@lotus.com


When deserializing, SchemaAttDef can create objects for its 
fDatatypeValidator, fAnyDatatypeValidator, and fMemberTypeValidator data 
members.  Unfortunately, it does not delete them.  I suspect this is because, 
prior to grammar serialization, it did not really own the object.  However, 
now it does, and it must delete it in its destructor.  Note this has 
implications through SchemaAttDef, because multiple member functions modify 
these data members.  There may also be other cases of this sort of thing in 
other classes where serialization has been added in the same manner.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org