summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2007-09-12 21:17:45 +0000
committerMark Michelson <mmichelson@digium.com>2007-09-12 21:17:45 +0000
commit25e4377167d504889b7389429f3e625227a77664 (patch)
tree8e15a2c60f6d31aa9ec7406e23da5611a32d1559
parent95ee34a654e33dafe8239e8cb92b35eabd6c6277 (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: https://origsvn.digium.com/svn/asterisk/trunk@82289 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-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;
}