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

Alex Mantaut updated AXIS2C-1635:
---------------------------------

    Attachment: axis2c-1635.patch

Hi Gilles, 
            I tried your patch without the part moving the options free in 
svc_client.c and found a small memory corruption introduced in r1467162 for SSL 
on the google sample (I worked on that issue and I forgot to contemplate the 
SSL case)
            In any case I modified your patch a bit:

- removed the svc_client part (at least till we can figure out what is the 
problem there)
- corrected the memory corruption on the stream, 
- solved a couple small mem leaks on the samples (which were annoying while 
testing)

Can you tell me if this works alright for you?
                
> Fix for various memleaks & corruptions
> --------------------------------------
>
>                 Key: AXIS2C-1635
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1635
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: 1.6.0, Current (Nightly)
>         Environment: FC18 / WinXP
>            Reporter: Gilles Gagniard
>              Labels: patch
>             Fix For: Current (Nightly)
>
>         Attachments: axis2c-1635.patch, axis2c_fixes.patch, echo.valgrind.log
>
>
> This issue contains a patch for various memleaks / corruptions in Axis2/C.
> Each proposed fix has an attached comment in the patch describing the issue.
> In particular, it fixes :
> - a crasher introduced with r1467162 : in http_sender.c in_stream could be 
> reused after being freed
> - a crasher sometime happening when freeing a svc_client : in svc_client.c 
> options should be freed last because free callbacks for other members can tap 
> into options (and do, see conf_ctx for instance !)
> - a memleak in the connection_map handling in http_sender.c (key is always 
> strdup()ed but never freed)
> - a crasher in stream handling, happening if the incoming stream length is 
> exactly equal to internal buffer length
> - a memleak in om_element

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: c-dev-h...@axis.apache.org

Reply via email to