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:
parent
95ee34a654
commit
25e4377167
|
@ -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);
|
ast_mutex_unlock(&q->lock);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue