[svn-commits] mnicholson: branch group/newcdr r202492 - /team/group/newcdr/main/channel.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Jun 22 14:30:23 CDT 2009
Author: mnicholson
Date: Mon Jun 22 14:30:19 2009
New Revision: 202492
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=202492
Log:
Properly clean up CDRs asscioated with dummy channels.
Modified:
team/group/newcdr/main/channel.c
Modified: team/group/newcdr/main/channel.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/newcdr/main/channel.c?view=diff&rev=202492&r1=202491&r2=202492
==============================================================================
--- team/group/newcdr/main/channel.c (original)
+++ team/group/newcdr/main/channel.c Mon Jun 22 14:30:19 2009
@@ -1851,6 +1851,11 @@
/* no need to lock the list, as the channel is already locked */
while ((vardata = AST_LIST_REMOVE_HEAD(headp, entries)))
ast_var_delete(vardata);
+
+ if (chan->cdr) {
+ ast_cdr_discard(chan->cdr);
+ chan->cdr = NULL;
+ }
ast_string_field_free_memory(chan);
}
More information about the svn-commits
mailing list