[svn-commits] tilghman: branch 1.4 r53532 - /branches/1.4/main/loader.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Feb 8 06:47:54 MST 2007


Author: tilghman
Date: Thu Feb  8 07:47:54 2007
New Revision: 53532

URL: http://svn.digium.com/view/asterisk?view=rev&rev=53532
Log:
Issue 9007 - Mutex not released on early return

Modified:
    branches/1.4/main/loader.c

Modified: branches/1.4/main/loader.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/loader.c?view=diff&rev=53532&r1=53531&r2=53532
==============================================================================
--- branches/1.4/main/loader.c (original)
+++ branches/1.4/main/loader.c Thu Feb  8 07:47:54 2007
@@ -535,8 +535,10 @@
 	}
 	ast_lastreloadtime = time(NULL);
 
-	if (name && res)
+	if (name && res) {
+		ast_mutex_unlock(&reloadlock);
 		return res;
+	}
 
 	AST_LIST_LOCK(&module_list);
 	AST_LIST_TRAVERSE(&module_list, cur, entry) {



More information about the svn-commits mailing list