diff options
author | Mark Michelson <mmichelson@digium.com> | 2009-04-14 23:28:13 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2009-04-14 23:28:13 +0000 |
commit | f26878feb29981ff69185d8b8c7e06b645e8b108 (patch) | |
tree | 18f187ffc562f112041ac0834fafb07aae8b01d4 | |
parent | 973b36a3c738ec70a3f09d41480639707e8420be (diff) |
Fix a couple of queue member reference leaks.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@188470 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | apps/app_queue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index c62b4985a..c88bfd61d 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -4611,7 +4611,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); @@ -4645,6 +4645,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; |