aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-12 21:17:45 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-12 21:17:45 +0000
commite6abcba2f2303cfae1315e11f5ba7b762c460569 (patch)
tree8e15a2c60f6d31aa9ec7406e23da5611a32d1559 /apps
parent1f7d5b854e2029c0b9993cbd98cc0af01bee3c78 (diff)
Removed an unneeded ao2_ref. This was a problem because unless get_member_status returned QUEUE_NORMAL, a NULL member
would be unreferenced. While this didn't cause any crashes or anything terrible, it still is incorrect git-svn-id: http://svn.digium.com/svn/asterisk/trunk@82289 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index cb5b9b106..adf752556 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -542,7 +542,6 @@ static enum queue_member_status get_member_status(struct call_queue *q, int max_
}
}
- ao2_ref(member, -1);
ast_mutex_unlock(&q->lock);
return result;
}