axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Tyler (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AXIS2C-1585) Double freeing pointers
Date Wed, 01 Feb 2012 21:48:58 GMT
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


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


Mime
View raw message