[asterisk-bugs] [Asterisk 0013310]: [patch] Memory leak in chan_gtalk while trying to unload the module.

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Aug 21 04:46:40 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13310 
====================================================================== 
Reported By:                eliel
Assigned To:                phsultan
====================================================================== 
Project:                    Asterisk
Issue ID:                   13310
Category:                   Channels/chan_gtalk
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 137974 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-15 10:32 CDT
Last Modified:              2008-08-21 04:46 CDT
====================================================================== 
Summary:                    [patch] Memory leak in chan_gtalk while trying to
unload the module.
Description: 
While trying to unload the chan_gtalk module, and we call
ASTOBJ_CONTAINER_DESTROYALL() the member_detroy function is never called
cause every member in gtalk_list has refcount > 1.
Also when calling find_gtalk the refcount of the found member is
incremented and never decremented when not used anymore.

====================================================================== 

---------------------------------------------------------------------- 
 (0091621) svnbot (reporter) - 2008-08-21 04:46
 http://bugs.digium.com/view.php?id=13310#c91621 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 139281

U   trunk/channels/chan_gtalk.c

------------------------------------------------------------------------
r139281 | phsultan | 2008-08-21 04:46:38 -0500 (Thu, 21 Aug 2008) | 5
lines

Fix two memory leaks in chan_gtalk, thanks Eliel!
(closes issue http://bugs.digium.com/view.php?id=13310)
Reported by: eliel
Patches:
      chan_gtalk.c.patch uploaded by eliel (license 64)
------------------------------------------------------------------------

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-21 04:46 svnbot         Checkin                                      
2008-08-21 04:46 svnbot         Note Added: 0091621                          
======================================================================




More information about the asterisk-bugs mailing list