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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 11 15:49:34 CDT 2007


Author: russell
Date: Tue Sep 11 15:49:34 2007
New Revision: 82263

URL: http://svn.digium.com/view/asterisk?view=rev&rev=82263
Log:
Fix another missing unref of member objects.  This one was pointed out by Marta.
When building the outgoing list in try_calling(), a member reference is stored
in each outgoing entry.  However, when this list got destroyed, the reference
was not released.

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=82263&r1=82262&r2=82263
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Tue Sep 11 15:49:34 2007
@@ -1566,6 +1566,8 @@
 			ast_hangup(outgoing->chan);
 		oo = outgoing;
 		outgoing = outgoing->q_next;
+		if (oo->member)
+			ao2_ref(oo->member, -1);
 		free(oo);
 	}
 }




More information about the asterisk-commits mailing list