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

AXIOM_STAX_BUILDER_FREE releases built document

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • xml/parser
    • None
    • Linux / simple_http_client

    Description

      In my webservice I build a document with the stax_builder (as in the documentation explained):

      builder = axiom_stax_builder_create(env, reader);
      document = AXIOM_STAX_BUILDER_GET_DOCUMENT(builder, env);
      payload = AXIOM_DOCUMENT_GET_ROOT_ELEMENT(document, env);
      AXIOM_DOCUMENT_BUILD_ALL(document, env);

      then I return the root node back to the client.

      If I call the Macro AXIOM_STAX_BUILDER_FREE to release the resources from stax_builder it releases
      the built document too, and the axis engine tries to serialize the freed OM-Tree.

      If I don't call AXIOM_STAX_BUILDER_FREE, I have memory leaks...

      Shouldn't the document be freed in a separate step if needed?

      Thanks

      Marc

      Attachments

        Activity

          People

            samisa Don Samisa Abeysinghe
            gigerstyle Marc Giger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: