[
https://issues.apache.org/jira/browse/AXIS2C-1650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13824057#comment-13824057
]
Jean-Marc Lamond commented on AXIS2C-1650:
------------------------------------------
Hi Alex,
I have wrote an axis2c client gateway program for a legacy system.
I basicaly use cientapi for http/https native rest call, no soap. I use libxml2
because of decoding problem with the local one. I also implement xpath query
(so far about 300 per invocation.
I have so far apply most latest patches, and so far, I still have few memory
leak in transport, but acceptable for a 10 000 times loop from the legacy
caller.
I have so far digg out up to axiom_xpath_evaluate_streaming and corresponding
axiom_xpath_free_result. Here is quite bad. A lot of memory is not release...
JM
Jean-Marc
> memory leak xpatch.c
> --------------------
>
> Key: AXIS2C-1650
> URL: https://issues.apache.org/jira/browse/AXIS2C-1650
> Project: Axis2-C
> Issue Type: Bug
> Components: xml/om
> Affects Versions: 1.7.0
> Environment: AIX 6.1 xlc_r
> Reporter: Jean-Marc Lamond
> Attachments: xpath.c.patch
>
>
> context->attribute not free in axiom_xpath_free_context.
> env->dummy_root
> "
> /*HACK: xpath impl requires a dummy root node in order to process
> properly.*/
> axiom_node_t * dummy_root;
> dummy_root = axiom_node_create(env);
> axiom_node_add_child(dummy_root, env, root_node);
> context = AXIS2_MALLOC(env->allocator,
> sizeof(axiom_xpath_context_t));
> "
> should also be free.
> attached patch file.
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]