[Home]

Summary:ASTERISK-06568: leak on ast_channel_free
Reporter:silik0n (silik0n)Labels:
Date Opened:2006-03-19 14:44:29.000-0600Date Closed:2008-01-15 17:38:51.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) channel.c.leak.patch
Description:ast_string_fields not being freed on channel distruction

found this by using sipp to general a a large volume of calls

./sipp -sn uac 192.168.1.10 -p 5061 -r 500

****** ADDITIONAL INFORMATION ******

thanks to oej on the fix

attached patch works for me (oej's patch not mine)
Comments:By: Russell Bryant (russell) 2006-03-19 15:02:54.000-0600

fixed in the trunk in revision 13628, thanks guys!

By: Digium Subversion (svnbot) 2008-01-15 17:38:51.000-0600

Repository: asterisk
Revision: 13628

U   trunk/channel.c

------------------------------------------------------------------------
r13628 | russell | 2008-01-15 17:38:51 -0600 (Tue, 15 Jan 2008) | 3 lines

fix memory leak due to not freeing the channel's string fields in
ast_channel_destroy() (issue ASTERISK-6568)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=13628