A small change to prevent double-posting of CDR's; thanks to Daniel Ferrer for bringing it to our attention

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@141156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Steve Murphy
2008-09-05 14:15:43 +00:00
parent 00256a00c2
commit 8f720a0bdf

View File

@@ -1279,7 +1279,7 @@ void ast_channel_free(struct ast_channel *chan)
ast_jb_destroy(chan);
if (chan->cdr) {
ast_cdr_detach(chan->cdr);
ast_cdr_discard(chan->cdr);
chan->cdr = NULL;
}