[asterisk-commits] russell: branch 1.4 r82238 - /branches/1.4/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 11 09:21:18 CDT 2007


Author: russell
Date: Tue Sep 11 09:21:17 2007
New Revision: 82238

URL: http://svn.digium.com/view/asterisk?view=rev&rev=82238
Log:
Add a missing unref of a queue member in an error handling block

Modified:
    branches/1.4/apps/app_queue.c

Modified: branches/1.4/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_queue.c?view=diff&rev=82238&r1=82237&r2=82238
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Tue Sep 11 09:21:17 2007
@@ -2488,6 +2488,7 @@
 		struct callattempt *tmp = ast_calloc(1, sizeof(*tmp));
 
 		if (!tmp) {
+			ao2_ref(cur, -1);
 			ast_mutex_unlock(&qe->parent->lock);
 			if (use_weight)
 				AST_LIST_UNLOCK(&queues);




More information about the asterisk-commits mailing list