You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Senaka Fernando (JIRA)" <ji...@apache.org> on 2008/02/14 08:05:08 UTC

[jira] Reopened: (AXIS2C-985) There's a leak due to wrong token create

     [ https://issues.apache.org/jira/browse/AXIS2C-985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Senaka Fernando reopened AXIS2C-985:
------------------------------------


Hi Dinesh,

There seems to be an issue in the provided patch. tok->start = start is wrong. What if someone frees the parameters passed after calling this method. Won't we lead into a dangling pointer situation. tok->start = strdup(start) is the proper way i guess. And, that is what was happening with some of the replaced code. I think

Regards,
Senaka

> There's a leak due to wrong token create 
> -----------------------------------------
>
>                 Key: AXIS2C-985
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-985
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: Current (Nightly)
>         Environment: Ubuntu 7.10
>            Reporter: Lahiru Gunathilake
>            Assignee: Dinesh Premalal
>             Fix For: 1.3.0
>
>         Attachments: diff_leak_fix.txt
>
>
> There's  a wrong token creation in guththila_init method and it cause a memory leak.

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