mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 15:29:05 +00:00
closes issue #11294; missed the conditional unlock of the contexts when the hash table is used instead; also, used the ast_free_ptr as advised.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89792 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3604,7 +3604,8 @@ static struct ast_context *find_context_locked(const char *context)
|
||||
return c;
|
||||
}
|
||||
#endif
|
||||
ast_unlock_contexts();
|
||||
if (!c)
|
||||
ast_unlock_contexts();
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user