[asterisk-bugs] [Asterisk 0014833]: [patch] memory leak in some part of code

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 28 10:35:25 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14833 
====================================================================== 
Reported By:                contactmayankjain
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   14833
Category:                   Addons/General
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.0.6 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-04-06 05:38 CDT
Last Modified:              2009-05-28 10:35 CDT
====================================================================== 
Summary:                    [patch] memory leak  in some part of code
Description: 
Memory leak are present in some part of the asterisk code. This have been
tested by using tool cppcheck 
 cppcheck -a -j 3 -q -f --style asterisk/

At some of the places NULL is check before deleting memory which is 
Redundant condition. It is safe to deallocate a NULL pointer. 
http://www.mail-archive.com/asterisk-dev@lists.digium.com/msg36740.html
====================================================================== 

---------------------------------------------------------------------- 
 (0105661) svnbot (reporter) - 2009-05-28 10:35
 https://issues.asterisk.org/view.php?id=14833#c105661 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 197616

U   trunk/apps/app_rpt.c
U   trunk/channels/chan_console.c
U   trunk/channels/chan_dahdi.c
U   trunk/main/astobj2.c
U   trunk/main/cli.c

------------------------------------------------------------------------
r197616 | tilghman | 2009-05-28 10:35:24 -0500 (Thu, 28 May 2009) | 7
lines

Eliminate several needless checks and fix a few memory leaks
(closes issue https://issues.asterisk.org/view.php?id=14833)
 Reported by: contactmayankjain
 Patches: 
       all_changes.patch uploaded by contactmayankjain (license 740)
       slightly modified by me

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-28 10:35 svnbot         Checkin                                      
2009-05-28 10:35 svnbot         Note Added: 0105661                          
======================================================================




More information about the asterisk-bugs mailing list