axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Marc Lamond (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AXIS2C-1650) memory leak xpatch.c
Date Fri, 08 Nov 2013 17:34:22 GMT
Jean-Marc Lamond created AXIS2C-1650:
----------------------------------------

             Summary: 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


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: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


Mime
View raw message