[Home]

Summary:ASTERISK-10734: [patch] Trivial: Use ast_free() insted of free()
Reporter:Tomás Laureano Peralta Tormey (laureano)Labels:
Date Opened:2007-11-10 11:09:20.000-0600Date Closed:2007-11-11 10:34:51.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Addons/chan_mobile
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) chan_mobile_v2.c.patch
Description:In asterisk-addons channel driver chan_mobile, change free() to ast_free().

Disclaimer on file.
Comments:By: Tomás Laureano Peralta Tormey (laureano) 2007-11-10 11:15:55.000-0600

I added more changes from free() to ast_free(), please use chan_mobile_v2.c.patch.

By: Digium Subversion (svnbot) 2007-11-11 10:34:51.000-0600

Repository: asterisk-addons
Revision: 483

U   trunk/chan_mobile.c

------------------------------------------------------------------------
r483 | tilghman | 2007-11-11 10:34:49 -0600 (Sun, 11 Nov 2007) | 9 lines

A few coding guidelines fixes:
- Extraneous tabs
- Change free() to ast_free()
- Change ast_malloc() to ast_calloc() where a large portion of parameters are subsequently initialized to 0.
- Remove reload_module() routine, as its existence suggests that the module can sustain a reload event (when in fact the reload did nothing).
Reported by: Laureano
Patch by: Laureano,tilghman
Closes issue ASTERISK-10734

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