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 "

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to