aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-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 fb1c22dbd..2b1ad759f 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -4246,7 +4246,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);
@@ -4280,6 +4280,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;