Audit of ao2_iterator_init() usage for v10.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 27 Jan 2012 19:33:49 +0000 (19:33 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 27 Jan 2012 19:33:49 +0000 (19:33 +0000)
Fix double format_cap iterator cleanup.
........

Merged revisions 352992 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@352996 65c4cc65-6c06-0410-ace0-fbb531ad65f3

tests/test_format_api.c

index b514091..c429e08 100644 (file)
@@ -575,7 +575,6 @@ static int container_test1_helper(struct ast_format_cap *cap1, struct ast_format
                if (!video || !audio || !text || !image) {
                        ast_test_status_update(test, "failed to add all\n");
                        res = AST_TEST_FAIL;
-                       ast_format_cap_iter_end(cap_joint);
                        goto test3_cleanup;
                }
        }