From: Mark Spencer Date: Sat, 8 May 2004 14:24:58 +0000 (+0000) Subject: Add missing unlock (although it shouldn't make a difference) X-Git-Tag: 1.0.0-rc1~523 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dca37d634ebc2e75e0c637f4be10712e4b392751;p=thirdparty%2Fasterisk.git Add missing unlock (although it shouldn't make a difference) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2922 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 40215c7c93..4ede61f40a 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -1641,6 +1641,7 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout) } if (pri_grab(p, p->pri)) { ast_log(LOG_WARNING, "Failed to grab PRI!\n"); + ast_mutex_unlock(&p->lock); return -1; } if (!(p->call = pri_new_call(p->pri->pri))) {