mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 14:44:28 +00:00
Fixes a memory leak
(closes issue #10658, reported and patched by Ivan) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1568,7 +1568,7 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
|
|||||||
|
|
||||||
/* absorb the peer cdr */
|
/* absorb the peer cdr */
|
||||||
ast_cdr_merge(bridge_cdr, peer->cdr);
|
ast_cdr_merge(bridge_cdr, peer->cdr);
|
||||||
if (ast_test_flag(peer->cdr, AST_CDR_FLAG_LOCKED))
|
if (!ast_test_flag(peer->cdr, AST_CDR_FLAG_LOCKED))
|
||||||
ast_cdr_discard(peer->cdr); /* if locked cdrs are in peer, they are taken over in the merge */
|
ast_cdr_discard(peer->cdr); /* if locked cdrs are in peer, they are taken over in the merge */
|
||||||
|
|
||||||
peer->cdr = NULL;
|
peer->cdr = NULL;
|
||||||
|
Reference in New Issue
Block a user