aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-06 15:20:36 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-06 15:20:36 +0000
commit1ffd520ede063ae4f2d00e52f7acd8a896874dff (patch)
tree090ca31ad120a27614e126933e40fda845c25dcb /res
parent99e66192c442fffea6a26c918250439f794a2965 (diff)
Fixes a memory leak
(closes issue #10658, reported and patched by Ivan) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81682 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_features.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c
index dd037ab64..b863be921 100644
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -1568,7 +1568,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;