[svn-commits] mmichelson: branch 1.4 r101035 - /branches/1.4/apps/app_queue.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Jan 29 17:02:03 CST 2008
Author: mmichelson
Date: Tue Jan 29 17:02:03 2008
New Revision: 101035
URL: http://svn.digium.com/view/asterisk?view=rev&rev=101035
Log:
Remove a memory leak from updating realtime queues
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=101035&r1=101034&r2=101035
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Tue Jan 29 17:02:03 2008
@@ -1285,8 +1285,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*/
if (option_debug > 2)
ast_log(LOG_DEBUG, "Queue %s has no realtime members defined. No need for update\n", q->name);
@@ -1323,6 +1322,7 @@
ao2_ref(m, -1);
}
ast_mutex_unlock(&q->lock);
+ ast_config_destroy(member_config);
}
static struct call_queue *load_realtime_queue(const char *queuename)
More information about the svn-commits
mailing list