[asterisk-commits] mmichelson: branch mmichelson/ao2_containers r140405 - /team/mmichelson/ao2_c...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Aug 28 17:50:27 CDT 2008
Author: mmichelson
Date: Thu Aug 28 17:50:27 2008
New Revision: 140405
URL: http://svn.digium.com/view/asterisk?view=rev&rev=140405
Log:
Make sure to call ao2_ref on the proper values. Doing
otherwise just makes things screwy.
Modified:
team/mmichelson/ao2_containers/main/astobj2.c
Modified: team/mmichelson/ao2_containers/main/astobj2.c
URL: http://svn.digium.com/view/asterisk/team/mmichelson/ao2_containers/main/astobj2.c?view=diff&rev=140405&r1=140404&r2=140405
==============================================================================
--- team/mmichelson/ao2_containers/main/astobj2.c (original)
+++ team/mmichelson/ao2_containers/main/astobj2.c Thu Aug 28 17:50:27 2008
@@ -507,7 +507,7 @@
if (ret) {
user_data = EXTERNAL_OBJ(ret);
/* inc refcount of returned object */
- _ao2_ref_debug(ret, 1, tag, file, line, funcname);
+ _ao2_ref_debug(user_data, 1, tag, file, line, funcname);
}
if (!(a->flags & F_AO2I_DONTLOCK))
@@ -534,7 +534,7 @@
if (ret) {
user_data = EXTERNAL_OBJ(ret);
/* inc refcount of returned object */
- _ao2_ref(ret, 1);
+ _ao2_ref(user_data, 1);
}
if (!(a->flags & F_AO2I_DONTLOCK))
More information about the asterisk-commits
mailing list