diff options
author | Mark Spencer <markster@digium.com> | 2006-01-12 17:34:10 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2006-01-12 17:34:10 +0000 |
commit | af155f9c28a83aa6b35a900c56b39def2e9ade28 (patch) | |
tree | 338f8c72a52e0654e93720ab4b60ae7b00bf50ee /pbx.c | |
parent | 7b6c46a6d4091f82acf205ff84044d11f5c0c488 (diff) |
Remove unnecessary (but unexecutable) unlocks, cleanup code (bug #6220)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rw-r--r-- | pbx.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -5058,7 +5058,7 @@ void __ast_context_destroy(struct ast_context *con, const char *registrar) is searching through it. */ if (ast_mutex_lock(&tmp->lock)) { ast_log(LOG_WARNING, "Unable to lock context lock\n"); - return; + break; } if (tmpl) tmpl->next = tmp->next; @@ -5105,8 +5105,7 @@ void __ast_context_destroy(struct ast_context *con, const char *registrar) tmpil = NULL; continue; } - ast_mutex_unlock(&conlock); - return; + break; } tmpl = tmp; tmp = tmp->next; |