summaryrefslogtreecommitdiff
path: root/main/astobj2_rbtree.c
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2016-07-07 13:41:25 -0400
committerCorey Farrell <git@cfware.com>2016-07-07 13:41:25 -0400
commit9d4e664f6280cbc6e0c48d59f62ab34887fa1971 (patch)
tree39d7e28f1d2f1aaad545bbc335f2265f73c05a2f /main/astobj2_rbtree.c
parentac6824e4c32c49b8943fca85b318892ab4bb8df3 (diff)
REF_DEBUG: Prevent logging of container node objects.
Using AO2_CONTAINER_ALLOC_OPT_DUPS_REPLACE can result in an unref being recorded to the refs log for the node being replaced. This prevents logging of those unrefs since they would produce errors in refcounter.py. ASTERISK-26181 #close Change-Id: Ie4fded84e8a1a58b3a59ce59dfd7eb0da3ddc5d4
Diffstat (limited to 'main/astobj2_rbtree.c')
-rw-r--r--main/astobj2_rbtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/astobj2_rbtree.c b/main/astobj2_rbtree.c
index d8195d47f..a8d5e3ac1 100644
--- a/main/astobj2_rbtree.c
+++ b/main/astobj2_rbtree.c
@@ -1267,7 +1267,7 @@ static enum ao2_container_insert rb_ao2_insert_node(struct ao2_container_rbtree
break;
case AO2_CONTAINER_ALLOC_OPT_DUPS_REPLACE:
SWAP(cur->common.obj, node->common.obj);
- ao2_t_ref(node, -1, "Don't need the new node.");
+ __ao2_ref(node, -1);
return AO2_CONTAINER_INSERT_NODE_OBJ_REPLACED;
}