]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
After reconsidering, with respect to 13409, ast_cdr_detach should be OK, better in...
authorSteve Murphy <murf@digium.com>
Tue, 2 Sep 2008 22:40:13 +0000 (22:40 +0000)
committerSteve Murphy <murf@digium.com>
Tue, 2 Sep 2008 22:40:13 +0000 (22:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@140690 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 3bbccff7cd1f59dc4f9d797872faa4a4df3ed0e4..68590d5b12841d529c6cc0be5ca953cb3179ddcf 100644 (file)
@@ -1279,7 +1279,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;
        }