[svn-commits] mmichelson: branch group/CCSS r215686 - /team/group/CCSS/main/ccss.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Sep 2 17:09:21 CDT 2009


Author: mmichelson
Date: Wed Sep  2 17:09:18 2009
New Revision: 215686

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=215686
Log:
Fix a couple of obvious refcount errors.


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=215686&r1=215685&r2=215686
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Wed Sep  2 17:09:18 2009
@@ -674,6 +674,7 @@
 	}
 
 	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);
@@ -681,6 +682,7 @@
 	}
 
 	ao2_link(cc_core_instances, core_instance);
+	ao2_ref(core_instance, -1); /* From ao2_alloc. */
 
 	return core_instance->core_id;
 }




More information about the svn-commits mailing list