[ 
https://issues.apache.org/jira/browse/AXIS2C-1144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12905273#action_12905273
 ] 

Nigel Meachen commented on AXIS2C-1144:
---------------------------------------

I think the original description of this issue has a typo, I think it should 
read

When nmsp_found is FALSE, namesp pointer will be pushed into stack, however 
when it's TRUE, namesp pointer will not be used and not be freed. By adding an 
else clause with a free of namesp, the leak will be prevented.

if (!nmsp_found)
{
   ....
}
else
{
   AXIS2_FREE(env->allocator, namesp);
}

> Memory leak when writing empty elements
> ---------------------------------------
>
>                 Key: AXIS2C-1144
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1144
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: guththila
>            Reporter: Supun Kamburugamuva
>
> guththila_xml_writer.c: 
> guththila_write_empty_element_with_prefix_and_namespace(), line 1694. When 
> nmsp_found is FALSE, namesp pointer will be pushed into stack, however when 
> it's FALSE, namesp pointer will not be used and not be freed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to