(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)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@307273
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
* 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;
}