diff --git a/channels/chan_local.c b/channels/chan_local.c index df1a2c454d..4d609afddf 100644 --- a/channels/chan_local.c +++ b/channels/chan_local.c @@ -236,6 +236,9 @@ static int local_queue_frame(struct local_pvt *p, int isoutbound, struct ast_fra return and destroy p. */ ast_mutex_unlock(&p->lock); p = local_pvt_destroy(p); + if (other) { + ast_channel_unlock(other); + } return -1; }