axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Giger (JIRA)" <>
Subject [jira] Created: (AXIS2C-447) AXIOM_STAX_BUILDER_FREE releases built document
Date Tue, 05 Dec 2006 18:34:21 GMT
AXIOM_STAX_BUILDER_FREE releases built document

                 Key: AXIS2C-447
             Project: Axis2-C
          Issue Type: Bug
          Components: xml/parser
    Affects Versions: Current (Nightly)
         Environment: Linux / simple_http_client
            Reporter: Marc Giger

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);

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
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?



This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message