Audit of ao2_iterator_init() usage for v1.8.
[asterisk/asterisk.git] / main / pbx.c
index 204eb88..e565c48 100644 (file)
@@ -7605,6 +7605,7 @@ void ast_merge_contexts_and_delete(struct ast_context **extcontexts, struct ast_
                        AST_LIST_INSERT_HEAD(&hints_stored, saved_hint, list);
                }
        }
+       ao2_iterator_destroy(&i);
 
        /* save the old table and list */
        oldtable = contexts_table;