[asterisk-bugs] [Asterisk 0014795]: unfreed memory in ast_frdup() in frame.c

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 27 15:10:39 CDT 2009


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14795 
====================================================================== 
Reported By:                caspy
Assigned To:                kpfleming
====================================================================== 
Project:                    Asterisk
Issue ID:                   14795
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Target Version:             1.6.0.10
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-03-31 14:27 CDT
Last Modified:              2009-04-27 15:10 CDT
====================================================================== 
Summary:                    unfreed memory in ast_frdup() in frame.c
Description: 
*CLI> memory show summary frame.c
     48504 bytes in 3 allocations in function 'ast_smoother_new' of
'frame.c'
    829988 bytes (    829988 cache) in 3795 allocations in function
'ast_frdup' of 'frame.c'
878492 bytes allocated (829988 in caches) in 3798 allocations


# rasterisk -x 'memory show allocations frame.c' | sort | uniq -c | sort
-rn
   1802        128 bytes allocated (cache) in            ast_frdup at line
  461 of frame.c
   1747        299 bytes allocated (cache) in            ast_frdup at line
  461 of frame.c
    215        292 bytes allocated (cache) in            ast_frdup at line
  461 of frame.c
     30        458 bytes allocated (cache) in            ast_frdup at line
  461 of frame.c
      3      16168 bytes allocated in     ast_smoother_new at line   140
of frame.c
      1 878492 bytes allocated (829988 in caches) in 3798 allocations
      1        459 bytes allocated (cache) in            ast_frdup at line
  461 of frame.c


asterisk is idle, uptime ~35h, 66824 processed calls

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

---------------------------------------------------------------------- 
 (0103848) kpfleming (administrator) - 2009-04-27 15:10
 http://bugs.digium.com/view.php?id=14795#c103848 
---------------------------------------------------------------------- 
As you can see from the output, these are all the frame caches managed by
ast_frdup() so that it can reduce memory allocation/freeing (thrashing). If
you don't want frame caches to be used, build Asterisk with LOW_MEMORY
defined. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-27 15:10 kpfleming      Note Added: 0103848                          
2009-04-27 15:10 kpfleming      Status                   acknowledged =>
resolved
2009-04-27 15:10 kpfleming      Resolution               open => fixed       
2009-04-27 15:10 kpfleming      Assigned To               => kpfleming       
======================================================================




More information about the asterisk-bugs mailing list