]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Issue 9007 - Mutex not released on early return
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 8 Feb 2007 13:47:54 +0000 (13:47 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 8 Feb 2007 13:47:54 +0000 (13:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53532 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/loader.c

index 5f74f042d704b5027192b1d3723f4d57a0693f29..bf3f9ae0a80678f408bd0e66040b4bc570de03bb 100644 (file)
@@ -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) {