[reSIProcate] Memory Usage

Jason Fischl jason at purplecomm.com
Thu Jul 22 16:19:52 CDT 2004


I applied these patches and checked in. 

> -----Original Message-----
> From: resiprocate-devel-bounces at list.sipfoundry.org
> [mailto:resiprocate-devel-bounces at list.sipfoundry.org]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 at list.sipfoundry.org
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
> 




More information about the resiprocate-devel mailing list