[asterisk-commits] rmudgett: branch 10 r353039 - /branches/10/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 27 15:37:40 CST 2012


Author: rmudgett
Date: Fri Jan 27 15:37:39 2012
New Revision: 353039

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=353039
Log:
Audit of ao2_iterator_init() usage for v10.  Missed one.

Modified:
    branches/10/apps/app_queue.c

Modified: branches/10/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/apps/app_queue.c?view=diff&rev=353039&r1=353038&r2=353039
==============================================================================
--- branches/10/apps/app_queue.c (original)
+++ branches/10/apps/app_queue.c Fri Jan 27 15:37:39 2012
@@ -5506,12 +5506,11 @@
 
 		/* After hitting realtime queues, go back and get the regular ones. */
 		queue_iter = ao2_iterator_init(queues, 0);
-
 		while ((q = ao2_t_iterator_next(&queue_iter, "Iterate through queues"))) {
 			foundqueue++;
 			foundinterface += set_member_penalty_help_members(q, interface, penalty);
 		}
-
+		ao2_iterator_destroy(&queue_iter);
 	} else { /* We actually have a queuename, so we can just act on the single queue. */
 		if ((q = find_load_queue_rt_friendly(queuename))) {
 			foundqueue++;




More information about the asterisk-commits mailing list