diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-08-29 23:11:29 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-08-29 23:11:29 +0000 |
commit | 49b0098c4a0de0cb73e04c5efb5ef1aec06ad585 (patch) | |
tree | d5134e1b89be1a9bcb0c23f2b399bdcb9c163b9c /channel.c | |
parent | ae1e51c8573bb11f97c402b9d5daed2e6bc5b0b2 (diff) |
ensure CDR pointer is cleared after detaching it from channel (related to issue #4877)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6444 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1011,6 +1011,7 @@ int ast_hangup(struct ast_channel *chan) if (chan->cdr) { /* End the CDR if it hasn't already */ ast_cdr_end(chan->cdr); ast_cdr_detach(chan->cdr); /* Post and Free the CDR */ + chan->cdr = NULL; } if (ast_test_flag(chan, AST_FLAG_BLOCKING)) { ast_log(LOG_WARNING, "Hard hangup called by thread %ld on %s, while fd " |