[asterisk-commits] mmichelson: branch 1.4 r81682 - /branches/1.4/res/res_features.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Sep 6 10:20:36 CDT 2007
Author: mmichelson
Date: Thu Sep 6 10:20:36 2007
New Revision: 81682
URL: http://svn.digium.com/view/asterisk?view=rev&rev=81682
Log:
Fixes a memory leak
(closes issue #10658, reported and patched by Ivan)
Modified:
branches/1.4/res/res_features.c
Modified: branches/1.4/res/res_features.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_features.c?view=diff&rev=81682&r1=81681&r2=81682
==============================================================================
--- branches/1.4/res/res_features.c (original)
+++ branches/1.4/res/res_features.c Thu Sep 6 10:20:36 2007
@@ -1568,7 +1568,7 @@
/* 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;
More information about the asterisk-commits
mailing list