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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to