diff --git a/main/astobj2.c b/main/astobj2.c index 07d46bb6fd..3e853a7a27 100644 --- a/main/astobj2.c +++ b/main/astobj2.c @@ -693,7 +693,11 @@ static void *internal_ao2_callback(struct ao2_container *c, * 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; }