[asterisk-commits] file: trunk r116461 - /trunk/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 14 16:11:50 CDT 2008


Author: file
Date: Wed May 14 16:11:49 2008
New Revision: 116461

URL: http://svn.digium.com/view/asterisk?view=rev&rev=116461
Log:
Add a missing context unlock.
(closes issue #12649)
Reported by: ys
Patches:
      pbx.c.diff uploaded by ys (license 281)

Modified:
    trunk/main/pbx.c

Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?view=diff&rev=116461&r1=116460&r2=116461
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Wed May 14 16:11:49 2008
@@ -7227,6 +7227,8 @@
 				   ready to let it go as soon as we locked it. */
 				ast_unlock_context(tmp);
 				__ast_internal_context_destroy(tmp);
+			} else {
+				ast_unlock_context(tmp);
 			}
 		} else if (con) {
 			ast_verb(3, "Deleting context %s registrar=%s\n", tmp->name, tmp->registrar);




More information about the asterisk-commits mailing list