diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-06 15:21:45 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-06 15:21:45 +0000 |
commit | 831753611bd3da095e01f57235a61c9adb4c02d3 (patch) | |
tree | 2618440d154a5999575f15ce47ed3d3273d0e234 /res | |
parent | 4fd64bd788d79be5ab4e4badcc7c134861172e2b (diff) |
Merged revisions 81682 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r81682 | mmichelson | 2007-09-06 10:20:36 -0500 (Thu, 06 Sep 2007) | 5 lines
Fixes a memory leak
(closes issue #10658, reported and patched by Ivan)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81683 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_features.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c index a9c252b7e..dea8d805a 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -1990,7 +1990,7 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast /* absorb the 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 */ peer->cdr = NULL; |