< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

RE: [reSIProcate] Memory Usage


I applied these patches and checked in. 

> -----Original Message-----
> From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx]On Behalf Of Brian
> D'Souza
> Sent: Tuesday, July 20, 2004 3:08 PM
> To: Resiprocate
> Subject: [reSIProcate] Memory Usage
> 
> 
> Hello Resiprocate team,
> 
> In the TransactionState::processServerStale(...) method there may be a
> leak created when TU re-transmissions are processed. 
> 
> When I made the changes below the memory usage decreased.
> 
> void
> TransactionState::processServerStale(  Message* msg )
> {
>       .....
>    if (isTimer(msg))
>    {
>       if (timer->getType() == Timer::TimerStaleServer)
>       {
>        // switch order of delete
>       delete msg;
>          delete this;
>       }
>       ......
>    else if (isResponse(msg) && isFromTU(msg))
>    {
>       sendToWire(msg); 
>          delete msg; // this reduces memory usage
>    }
> 
> ....
> }
> 
> Is this correct ?
> 
> Brian.
> 
> 
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>