> 
> delete pData->contactAddress;
> 
> Jaroslav Libak
> 

It's not enough to get rid of this leak, its also caused in
sipxtapievents.cpp : sipxFireCallEvent()

if (pCallData && pSession)
{
            pSession->getContactRequestUri(contactAddress);
            pCallData->contactAddress = new UtlString(contactAddress);
}

this block gets executed multiple times during a call, thus
contactAddress is leaked several times.

if (pCallData && pSession && !pCallData->contactAddress)

will fix it.



Jaroslav Libak

_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to