aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-14 23:29:20 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-14 23:29:20 +0000
commit520832cec917ee9c9afcbb0db19644b41bb83fea (patch)
tree4a11be9b71178af8f926630ee07ed5f7023f78f4 /apps/app_queue.c
parent62b9b6d3f653877c6734715d311e75dc972a3991 (diff)
Merged revisions 188470 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r188470 | mmichelson | 2009-04-14 18:28:13 -0500 (Tue, 14 Apr 2009) | 3 lines Fix a couple of queue member reference leaks. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@188474 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r--apps/app_queue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 70c7d1ac8..0d59041ca 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -4495,7 +4495,7 @@ static int set_member_penalty(char *queuename, char *interface, int penalty)
"Location: %s\r\n"
"Penalty: %d\r\n",
q->name, mem->interface, penalty);
-
+ ao2_ref(mem, -1);
}
}
ao2_unlock(q);
@@ -4529,6 +4529,7 @@ static int get_member_penalty(char *queuename, char *interface)
ao2_lock(q);
if ((mem = interface_exists(q, interface))) {
penalty = mem->penalty;
+ ao2_ref(mem, -1);
ao2_unlock(q);
queue_unref(q);
return penalty;