Merged revisions 140670 via svnmerge from
[asterisk/asterisk.git] / main / pbx.c
index db4a795..59ba133 100644 (file)
@@ -7087,6 +7087,7 @@ static int ast_pbx_outgoing_cdr_failed(void)
        ast_cdr_end(chan->cdr);
        ast_cdr_failed(chan->cdr);      /* set the status to failed */
        ast_cdr_detach(chan->cdr);      /* post and free the record */
+       chan->cdr = NULL;
        ast_channel_free(chan);         /* free the channel */
 
        return 0;  /* success */