[svn-commits] bmd: trunk r179903 - /trunk/apps/app_directed_pickup.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Mar 3 14:03:07 CST 2009


Author: bmd
Date: Tue Mar  3 14:02:20 2009
New Revision: 179903

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=179903
Log:
fix a leaked channel lock (and future deadlock) when we try to pick up our own channel

Modified:
    trunk/apps/app_directed_pickup.c

Modified: trunk/apps/app_directed_pickup.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/apps/app_directed_pickup.c?view=diff&rev=179903&r1=179902&r2=179903
==============================================================================
--- trunk/apps/app_directed_pickup.c (original)
+++ trunk/apps/app_directed_pickup.c Tue Mar  3 14:02:20 2009
@@ -163,8 +163,8 @@
 	/* Just check that we are not picking up the SAME as target */
 	if (chan->name != target->name && chan != target) {
 		res = pickup_do(chan, target);
-		ast_channel_unlock(target);
-	}
+	}
+	ast_channel_unlock(target);
 
 	return res;
 }




More information about the svn-commits mailing list