app_queue: Cleanup ao2_iterator
[asterisk/asterisk.git] / apps / app_queue.c
index 0540ee5..4d4449f 100644 (file)
@@ -3537,6 +3537,7 @@ static void update_realtime_members(struct call_queue *q)
                        }
                        ao2_ref(m, -1);
                }
                        }
                        ao2_ref(m, -1);
                }
+               ao2_iterator_destroy(&mem_iter);
                ast_debug(3, "Queue %s has no realtime members defined. No need for update\n", q->name);
                ao2_unlock(q);
                return;
                ast_debug(3, "Queue %s has no realtime members defined. No need for update\n", q->name);
                ao2_unlock(q);
                return;