summaryrefslogtreecommitdiff
path: root/main/astobj2_hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/astobj2_hash.c')
-rw-r--r--main/astobj2_hash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/astobj2_hash.c b/main/astobj2_hash.c
index 341ff79e0..f5c678740 100644
--- a/main/astobj2_hash.c
+++ b/main/astobj2_hash.c
@@ -186,7 +186,9 @@ static void hash_ao2_node_destructor(void *v_doomed)
* same node.
*/
my_container = (struct ao2_container_hash *) doomed->common.my_container;
- ast_assert(is_ao2_object(my_container));
+#if defined(AST_DEVMODE)
+ is_ao2_object(my_container);
+#endif
__adjust_lock(my_container, AO2_LOCK_REQ_WRLOCK, 1);