mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
Make sure to unlock the lock_info lock (huh?). Possible deadlock?
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@125587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -701,6 +701,9 @@ int ast_find_lock_info(void *lock_addr, const char **filename, int *lineno, cons
|
|||||||
*lineno = lock_info->locks[i].line_num;
|
*lineno = lock_info->locks[i].line_num;
|
||||||
*func = lock_info->locks[i].func;
|
*func = lock_info->locks[i].func;
|
||||||
*mutex_name = lock_info->locks[i].lock_name;
|
*mutex_name = lock_info->locks[i].lock_name;
|
||||||
|
|
||||||
|
pthread_mutex_unlock(&lock_info->lock);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user