ao2_iterator: Mini-audit of the ao2_iterator loops in the new code files.

* Fixed several places where ao2_iterator_destroy() was not called.

* Fixed several iterator loop object variable reference problems.

* Fixed res_parking AMI actions returning non-zero.  Only the AMI logoff
action can return non-zero.

Review: https://reviewboard.asterisk.org/r/3087/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@404434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2013-12-20 19:52:43 +00:00
parent 96534bcb03
commit 4576cdc925
8 changed files with 52 additions and 35 deletions

View 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");