Merged revisions 141156 via svnmerge from
authorSteve Murphy <murf@digium.com>
Fri, 5 Sep 2008 14:18:43 +0000 (14:18 +0000)
committerSteve Murphy <murf@digium.com>
Fri, 5 Sep 2008 14:18:43 +0000 (14:18 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r141156 | murf | 2008-09-05 08:15:43 -0600 (Fri, 05 Sep 2008) | 1 line

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/trunk@141157 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 017a812..b19c4c9 100644 (file)
@@ -1362,7 +1362,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;
        }