]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove unnecessary unlock (bug #6171)
authorMark Spencer <markster@digium.com>
Sun, 8 Jan 2006 19:53:25 +0000 (19:53 +0000)
committerMark Spencer <markster@digium.com>
Sun, 8 Jan 2006 19:53:25 +0000 (19:53 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7868 65c4cc65-6c06-0410-ace0-fbb531ad65f3

manager.c

index 10442dad79afc0eb10626d5ab30bc16055a8affb..541989cc995f394034d67c00bbbac9a117bda0f7 100644 (file)
--- a/manager.c
+++ b/manager.c
@@ -1634,7 +1634,6 @@ int ast_manager_register2(const char *action, int auth, int (*func)(struct manse
        cur = malloc(sizeof(struct manager_action));
        if (!cur) {
                ast_log(LOG_WARNING, "Manager: out of memory trying to register action\n");
-               ast_mutex_unlock(&actionlock);
                return -1;
        }
        cur->action = action;