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 "nadir amra (Commented) (JIRA)" <ji...@apache.org> on 2012/02/02 17:34:52 UTC

[jira] [Commented] (AXIS2C-1585) Double freeing pointers

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

nadir amra commented on AXIS2C-1585:
------------------------------------

Not sure where the double free'ing of pointers are, but your solution does not solve the problem since the ptr variable is a local variable.   

Unless there is something more to it? 
                
> Double freeing pointers
> -----------------------
>
>                 Key: AXIS2C-1585
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1585
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: util
>            Reporter: Michael Tyler
>              Labels: api-change, features, patch
>
> I believe that most of double freeing of pointer core dump issues can simple by resolved by altering the axutil_allocator_free_impl function
> change 
> void AXIS2_CALL
> axutil_allocator_free_impl(
>     axutil_allocator_t * allocator,
>     void *ptr)
> {
>     free(ptr);
> }
> to 
> void AXIS2_CALL
> axutil_allocator_free_impl(
>     axutil_allocator_t * allocator,
>     void *ptr)
> {
>     free(ptr);
>     ptr = NULL;
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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