mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 19:16:46 +00:00
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.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@140690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1279,7 +1279,7 @@ void ast_channel_free(struct ast_channel *chan)
|
|||||||
ast_jb_destroy(chan);
|
ast_jb_destroy(chan);
|
||||||
|
|
||||||
if (chan->cdr) {
|
if (chan->cdr) {
|
||||||
ast_cdr_free(chan->cdr);
|
ast_cdr_detach(chan->cdr);
|
||||||
chan->cdr = NULL;
|
chan->cdr = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user