mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user