Merged revisions 140690 via svnmerge from
[asterisk/asterisk.git] / main / channel.c
index 2596a00..017a812 100644 (file)
@@ -1362,7 +1362,7 @@ void ast_channel_free(struct ast_channel *chan)
        ast_jb_destroy(chan);
 
        if (chan->cdr) {
        ast_jb_destroy(chan);
 
        if (chan->cdr) {
-               ast_cdr_free(chan->cdr);
+               ast_cdr_detach(chan->cdr);
                chan->cdr = NULL;
        }
        
                chan->cdr = NULL;
        }