[asterisk-commits] coreyfarrell: branch 11 r426255 - /branches/11/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 28 06:17:41 CDT 2014


Author: coreyfarrell
Date: Tue Oct 28 06:17:37 2014
New Revision: 426255

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=426255
Log:
app_queue: Cleanup ao2_iterator

Clean ao2_iterator, resolving reference leak to queue members.

ASTERISK-24454 #close
Reported by: Corey Farrell
Review: https://reviewboard.asterisk.org/r/4111/

Modified:
    branches/11/apps/app_queue.c

Modified: branches/11/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/apps/app_queue.c?view=diff&rev=426255&r1=426254&r2=426255
==============================================================================
--- branches/11/apps/app_queue.c (original)
+++ branches/11/apps/app_queue.c Tue Oct 28 06:17:37 2014
@@ -2916,6 +2916,7 @@
 			}
 			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;




More information about the asterisk-commits mailing list