ao2_iterator: Mini-audit of the ao2_iterator loops in the new code files.
[asterisk/asterisk.git] / tests / test_scoped_lock.c
index 2fcaae2..1881bce 100644 (file)
@@ -254,6 +254,7 @@ AST_TEST_DEFINE(cleanup_order)
                        res = AST_TEST_FAIL;
                }
        }
+       ao2_iterator_destroy(&iter);
 
        if (object->reffed || object->locked) {
                ast_log(LOG_ERROR, "Test failed due to out of order cleanups\n");