[Home]

Summary:ASTERISK-11306: Small memory leak in cdr.c
Reporter:jmls (jmls)Labels:
Date Opened:2008-01-25 08:53:41.000-0600Date Closed:2008-01-31 13:40:47.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:CDR/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:While investigating why our asterisk process was slowly getting bigger, I found what seems to be a small memory leak in cdr.c.

With no channels active, I have over 4000 instances of

"1004 bytes allocated in        ast_cdr_alloc at line   466 of cdr.c"


****** ADDITIONAL INFORMATION ******

to reproduce this:

SIP Client calls Zap Channel, which answers

Use AMI redirect command to redirect the Zap channel to another extension/context (this can just be a Hangup command)

every time this happens, you get another 1004 bytes leaked.

Strange thing, if you redirect the SIP channel, this error does not seem to occur.

Also, add 100000 to the svn revision number ;)
Comments:By: jmls (jmls) 2008-01-28 13:27:21.000-0600

yay! murfs on the case ;)

By: Digium Subversion (svnbot) 2008-01-31 13:28:37.000-0600

Repository: asterisk
Revision: 101480

U   branches/1.4/main/pbx.c

------------------------------------------------------------------------
r101480 | murf | 2008-01-31 13:28:35 -0600 (Thu, 31 Jan 2008) | 1 line

closes issue ASTERISK-11306; that's the one where there's a 1004 byte cdr leak with every AMI Redirect to a zap channel
------------------------------------------------------------------------

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

By: Digium Subversion (svnbot) 2008-01-31 13:40:47.000-0600

Repository: asterisk
Revision: 101481

_U  trunk/
U   trunk/main/pbx.c

------------------------------------------------------------------------
r101481 | murf | 2008-01-31 13:40:46 -0600 (Thu, 31 Jan 2008) | 9 lines

Merged revisions 101480 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r101480 | murf | 2008-01-31 12:30:37 -0700 (Thu, 31 Jan 2008) | 1 line

closes issue ASTERISK-11306; that's the one where there's a 1004 byte cdr leak with every AMI Redirect to a zap channel
........

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

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