[asterisk-bugs] [Asterisk 0013232]: [patch] iax2-provision is not freeing iax_templates structure.

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Aug 5 10:34:34 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13232 
====================================================================== 
Reported By:                eliel
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13232
Category:                   Channels/chan_iax2
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 135437 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-04 07:23 CDT
Last Modified:              2008-08-05 10:34 CDT
====================================================================== 
Summary:                    [patch] iax2-provision is not freeing iax_templates
structure.
Description: 
The IAX2 provisioning templates structure is not being freed when unloading
the chan_iax2.so module.
This leads to 244bytes in a out of the box installation.

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

---------------------------------------------------------------------- 
 (0091102) eliel (manager) - 2008-08-05 10:34
 http://bugs.digium.com/view.php?id=13232#c91102 
---------------------------------------------------------------------- 
I couldn't use a LOCKED list, cause it is using a not so nice provlock
mutex in not so simple ways, so I leave the lock.
Also notice that it was copying a structure in this way:
memcpy(dsttemplate, srctemplate, sizeof()); and it was overwriting the
->next element, with the AST_LIST implementation, we can preserve this
->next element cause we don't know the list implementation/members, so I
have added a iax_template_copy(). 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-05 10:34 eliel          Note Added: 0091102                          
======================================================================




More information about the asterisk-bugs mailing list