[Asterisk-cvs] asterisk channel.c,1.233,1.234
kpfleming
kpfleming
Mon Aug 29 19:10:10 CDT 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv14458
Modified Files:
channel.c
Log Message:
ensure CDR pointer is cleared after detaching it from channel (related to issue #4877)
Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.233
retrieving revision 1.234
diff -u -d -r1.233 -r1.234
--- channel.c 22 Aug 2005 21:19:59 -0000 1.233
+++ channel.c 29 Aug 2005 23:11:29 -0000 1.234
@@ -1011,6 +1011,7 @@
if (chan->cdr) { /* End the CDR if it hasn't already */
ast_cdr_end(chan->cdr);
ast_cdr_detach(chan->cdr); /* Post and Free the CDR */
+ chan->cdr = NULL;
}
if (ast_test_flag(chan, AST_FLAG_BLOCKING)) {
ast_log(LOG_WARNING, "Hard hangup called by thread %ld on %s, while fd "
More information about the svn-commits
mailing list