mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user