[asterisk-commits] murf: trunk r101481 - in /trunk: ./ main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 31 13:43:40 CST 2008


Author: murf
Date: Thu Jan 31 13:43:40 2008
New Revision: 101481

URL: http://svn.digium.com/view/asterisk?view=rev&rev=101481
Log:
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 #11845; that's the one where there's a 1004 byte cdr leak with every AMI Redirect to a zap channel
........

Modified:
    trunk/   (props changed)
    trunk/main/pbx.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?view=diff&rev=101481&r1=101480&r2=101481
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Thu Jan 31 13:43:40 2008
@@ -5879,7 +5879,8 @@
 		   at the new location */
 		struct ast_channel *tmpchan = ast_channel_alloc(0, chan->_state, 0, 0, chan->accountcode, chan->exten, chan->context, chan->amaflags, "AsyncGoto/%s", chan->name);
 		if (chan->cdr) {
-			tmpchan->cdr = ast_cdr_dup(chan->cdr);
+			ast_cdr_discard(tmpchan->cdr);
+			tmpchan->cdr = ast_cdr_dup(chan->cdr);  /* share the love */
 		}
 		if (!tmpchan)
 			res = -1;




More information about the asterisk-commits mailing list