[asterisk-commits] mjordan: trunk r396542 - /trunk/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 12 10:49:00 CDT 2013


Author: mjordan
Date: Mon Aug 12 10:48:58 2013
New Revision: 396542

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=396542
Log:
Unlock outgoing dial lock on off nominal path

If the thread servicing the dial request isn't created successfully, the
outgoing dial lock will still be held when the function returns. This patch
unlocks the lock on this off nominal path.

Modified:
    trunk/main/pbx.c

Modified: trunk/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/pbx.c?view=diff&rev=396542&r1=396541&r2=396542
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Mon Aug 12 10:48:58 2013
@@ -9969,6 +9969,7 @@
 			ast_channel_unlock(*channel);
 			ast_channel_unref(*channel);
 		}
+		ast_mutex_unlock(&outgoing->lock);
 		ao2_ref(outgoing, -1);
 		return -1;
 	}




More information about the asterisk-commits mailing list