axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Senaka Fernando (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (AXIS2C-985) There's a leak due to wrong token create
Date Thu, 14 Feb 2008 07:05:08 GMT

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

senakafdo edited comment on AXIS2C-985 at 2/13/08 11:05 PM:
------------------------------------------------------------------

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.

Regards,
Senaka

      was (Author: senakafdo):
    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


Mime
View raw message