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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 29 17:02:49 CST 2008


Author: mmichelson
Date: Tue Jan 29 17:02:48 2008
New Revision: 101036

URL: http://svn.digium.com/view/asterisk?view=rev&rev=101036
Log:
Merged revisions 101035 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r101035 | mmichelson | 2008-01-29 17:02:03 -0600 (Tue, 29 Jan 2008) | 3 lines

Remove a memory leak from updating realtime queues


........

Modified:
    trunk/   (props changed)
    trunk/apps/app_queue.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=101036&r1=101035&r2=101036
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Tue Jan 29 17:02:48 2008
@@ -1555,8 +1555,7 @@
 	char *interface = NULL;
 	struct ao2_iterator mem_iter;
 
-	member_config = ast_load_realtime_multientry("queue_members", "interface LIKE", "%", "queue_name", q->name , NULL);
-	if (!member_config) {
+	if (!(member_config = ast_load_realtime_multientry("queue_members", "interface LIKE", "%", "queue_name", q->name , NULL))) {
 		/*This queue doesn't have realtime members*/
 		ast_debug(3, "Queue %s has no realtime members defined. No need for update\n", q->name);
 		return;
@@ -1591,6 +1590,7 @@
 		ao2_ref(m, -1);
 	}
 	ao2_unlock(q);
+	ast_config_destroy(member_config);
 }
 
 static int join_queue(char *queuename, struct queue_ent *qe, enum queue_result *reason)




More information about the asterisk-commits mailing list