[asterisk-commits] jpeeler: branch 1.8 r307273 - /branches/1.8/main/astobj2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Feb 9 15:06:38 CST 2011
Author: jpeeler
Date: Wed Feb 9 15:06:33 2011
New Revision: 307273
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=307273
Log:
Add missing debug info for ao2_link for use with REF_DEBUG in ao2 callback.
(closes issue #18758)
Reported by: rgagnon
Patches:
branch-1.8-r306540-astobj-fix.diff uploaded by rgagnon (license 1202)
trunk-r306540-astobj-fix.diff uploaded by rgagnon (license 1202)
Modified:
branches/1.8/main/astobj2.c
Modified: branches/1.8/main/astobj2.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/astobj2.c?view=diff&rev=307273&r1=307272&r2=307273
==============================================================================
--- branches/1.8/main/astobj2.c (original)
+++ branches/1.8/main/astobj2.c Wed Feb 9 15:06:33 2011
@@ -693,7 +693,11 @@
* link the object into the container that will hold the results.
*/
if (ret && (multi_container != NULL)) {
- __ao2_link(multi_container, ret);
+ if (tag) {
+ __ao2_link_debug(multi_container, ret, tag, file, line, funcname);
+ } else {
+ __ao2_link(multi_container, ret);
+ }
ret = NULL;
}
More information about the asterisk-commits
mailing list