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

memory leak xpatch.c

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.7.0
    • 1.7.0
    • xml/om
    • None
    • AIX 6.1 xlc_r

    Description

      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.

      Attachments

        1. Corrected xpath.c.patch
          0.4 kB
          Jean-Marc Lamond
        2. xpath.c.patch
          0.6 kB
          Jean-Marc Lamond

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jmlamond Jean-Marc Lamond
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment