backport fix for unnecessary unlock (issue #6171)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2006-01-09 04:52:16 +00:00
parent 7e6430787c
commit 18429f2a69

View File

@@ -1626,7 +1626,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;