summaryrefslogtreecommitdiff
path: root/main/channel.c
diff options
context:
space:
mode:
authorSteve Murphy <murf@digium.com>2008-09-02 22:55:12 +0000
committerSteve Murphy <murf@digium.com>2008-09-02 22:55:12 +0000
commit2fceed7f6dc69b3fdbc722938b3cb60b220e2bc7 (patch)
tree60f934a2c8c0b036b3f5b61b054855b328125a6d /main/channel.c
parent1c79a23b8e2dfa20fbb7ebc368157c122722f873 (diff)
Merged revisions 140690 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r140690 | murf | 2008-09-02 16:40:13 -0600 (Tue, 02 Sep 2008) | 1 line After reconsidering, with respect to 13409, ast_cdr_detach should be OK, better in fact, than ast_cdr_free, which generates lots of useless warnings that will undoubtably generate complaints. Hmmm. It doesn't hush the useless warnings, but it does allow control of posting via the detach and post routines, for those possible situations, where you'd want to post single-channel cdrs. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@140692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c
index 2596a0037..017a812c4 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -1362,7 +1362,7 @@ void ast_channel_free(struct ast_channel *chan)
ast_jb_destroy(chan);
if (chan->cdr) {
- ast_cdr_free(chan->cdr);
+ ast_cdr_detach(chan->cdr);
chan->cdr = NULL;
}