mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Issue 9007 - Mutex not released on early return
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -535,8 +535,10 @@ int ast_module_reload(const char *name)
|
||||
}
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user