Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-808

Incompatible between Guththila and Libxml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • xml/om
    • None
    • Ubuntu

    Description

      In om_stax_builder.c it calls parsers get_value and get_prefix like methods to get the parts of the xml.But when it wants to free those axis2_char_t* it simply calls the axiom_xml_reader_free method.But since Guththila and Libxml2 implementations are different , with Guththila it doesn't actually delete the malloc char*.To resolve this we can't simply use AXIS2_FREE to delete with both parsers because libxml2 gives those parts without doing malloc.Then we have to use some macro definition and decide whether built with guththila or not and use seperate methods to delete those char*.If we simply ignore this it cause a big memory leak with Guththila.It's around 3000bytes for a simple xml.

      Regs
      lahiru

      Attachments

        1. diff
          3 kB
          Lahiru Gunathilake

        Activity

          People

            pini Sanjaya Ratnaweera
            lahiru Lahiru Gunathilake
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: