aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-12 17:34:10 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-12 17:34:10 +0000
commit53989b527e0bfc6fae10d9cf76306d8cca49d673 (patch)
tree338f8c72a52e0654e93720ab4b60ae7b00bf50ee /pbx.c
parentb66a895eaf45c38be75f00b38e3aa4c734646a17 (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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pbx.c b/pbx.c
index 8c12d556e..a70f922fc 100644
--- a/pbx.c
+++ b/pbx.c
@@ -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;