[Asterisk-Dev] 'memory leak' in chan_phone.c

Jerris, Michael MI mjerris at ofllc.com
Tue Oct 11 04:27:09 MST 2005


> Guilherme Marshall
> 
> Hi there all...
> 
> I have been facing for quite a long time a constant increase 
> on asterisk's used memory. My tests have shown that each call (using
> chan_phone) allocates 7 or 8 data/stack memory pages (28~32 
> KBytes) which are not deallocated when call ends. The result 
> of this leakage was several 'out of memory' kernel 
> messages.... up to the process dead.
> As I could see, the problem was a thread created dinamically 
> in chan_phone, which was not set be 'detached'. The changes 
> I've done seemed to work fine.... (at least my system 
> continues to make/receive calls and the memory comsumption is 
> limited! :-D).
> 
> If the community appretiate to receive this patch, pls let me know.
> 
> Regards,
> Marshall.
> _______________________________________________

Please post a bug\patch to the bug tracker at bugs.digium.com.  Please
read the bug guidelines and details of the required disclaimer on that
site.

Thanks
Mike




More information about the asterisk-dev mailing list