[asterisk-commits] mmichelson: trunk r188470 - /trunk/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 14 18:28:17 CDT 2009


Author: mmichelson
Date: Tue Apr 14 18:28:13 2009
New Revision: 188470

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=188470
Log:
Fix a couple of queue member reference leaks.


Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/apps/app_queue.c?view=diff&rev=188470&r1=188469&r2=188470
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Tue Apr 14 18:28:13 2009
@@ -4611,7 +4611,7 @@
 					"Location: %s\r\n"
 					"Penalty: %d\r\n",
 					q->name, mem->interface, penalty);
-
+				ao2_ref(mem, -1);
 			}
 		}
 		ao2_unlock(q);
@@ -4645,6 +4645,7 @@
 		ao2_lock(q);
 		if ((mem = interface_exists(q, interface))) {
 			penalty = mem->penalty;
+			ao2_ref(mem, -1);
 			ao2_unlock(q);
 			queue_unref(q);
 			return penalty;




More information about the asterisk-commits mailing list