Fix double unlock of hintlock (bug #4205)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5602 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Mark Spencer 20 years ago
parent 82d52ffe35
commit 087eb40b76

@ -1919,11 +1919,12 @@ int ast_extension_state_add(const char *context, const char *exten,
if (cblist->callback == callback) {
cblist->data = data;
ast_mutex_unlock(&hintlock);
return 0;
}
cblist = cblist->next;
}
/* Now inserts the callback */
/* Now insert the callback */
cblist = malloc(sizeof(struct ast_state_cb));
if (!cblist) {
ast_mutex_unlock(&hintlock);

Loading…
Cancel
Save