[asterisk-commits] mmichelson: branch group/CCSS r215688 - /team/group/CCSS/main/ccss.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Sep 2 17:17:01 CDT 2009
Author: mmichelson
Date: Wed Sep 2 17:16:57 2009
New Revision: 215688
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=215688
Log:
Fix another refcount error.
Modified:
team/group/CCSS/main/ccss.c
Modified: team/group/CCSS/main/ccss.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=215688&r1=215687&r2=215688
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Wed Sep 2 17:16:57 2009
@@ -674,7 +674,6 @@
}
core_instance->core_id = pending_offer->core_id;
- ao2_ref(pending_offer, -1); /* From ao2_alloc within pending_cc_offer_init */
if (!(core_instance->agent = cc_agent_init(caller_chan, caller, core_instance->core_id))) {
ao2_ref(pending_offer, -1);
ao2_ref(core_instance, -1);
@@ -683,6 +682,7 @@
ao2_link(cc_core_instances, core_instance);
ao2_ref(core_instance, -1); /* From ao2_alloc. */
+ ao2_ref(pending_offer, -1); /* From ao2_alloc within pending_cc_offer_init */
return core_instance->core_id;
}
More information about the asterisk-commits
mailing list