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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/astobj2_hash.c b/main/astobj2_hash.c
index 76259dc7f..110dd1602 100644
--- a/main/astobj2_hash.c
+++ b/main/astobj2_hash.c
@@ -186,6 +186,8 @@ 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));
+
__adjust_lock(my_container, AO2_LOCK_REQ_WRLOCK, 1);
#if defined(AO2_DEBUG)