mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-04 03:20:33 +00:00
After a frame duplication failure, unlock the channel before returning.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@231298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -922,6 +922,7 @@ static int __ast_queue_frame(struct ast_channel *chan, struct ast_frame *fin, in
|
|||||||
for (cur = fin; cur; cur = AST_LIST_NEXT(cur, frame_list)) {
|
for (cur = fin; cur; cur = AST_LIST_NEXT(cur, frame_list)) {
|
||||||
if (!(f = ast_frdup(cur))) {
|
if (!(f = ast_frdup(cur))) {
|
||||||
ast_frfree(AST_LIST_FIRST(&frames));
|
ast_frfree(AST_LIST_FIRST(&frames));
|
||||||
|
ast_channel_unlock(chan);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user