diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-12 17:34:10 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-12 17:34:10 +0000 |
commit | 53989b527e0bfc6fae10d9cf76306d8cca49d673 (patch) | |
tree | 338f8c72a52e0654e93720ab4b60ae7b00bf50ee /pbx.c | |
parent | b66a895eaf45c38be75f00b38e3aa4c734646a17 (diff) |
Remove unnecessary (but unexecutable) unlocks, cleanup code (bug #6220)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8017 f38db490-d61c-443f-a65b-d21fe96a405b
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; |