aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-14 21:11:49 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-14 21:11:49 +0000
commite1a060a62cba034d55db28717c316be4acc50d59 (patch)
tree983d6cdc3bb364b578e0a8841e25adafe0ddcc7a
parent6e742022fa7a843241ea4a135a824b8265b69162 (diff)
Add a missing context unlock.
(closes issue #12649) Reported by: ys Patches: pbx.c.diff uploaded by ys (license 281) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116461 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/pbx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 86b4c0454..cc14ba2eb 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -7227,6 +7227,8 @@ void __ast_context_destroy(struct ast_context *list, struct ast_hashtab *context
ready to let it go as soon as we locked it. */
ast_unlock_context(tmp);
__ast_internal_context_destroy(tmp);
+ } else {
+ ast_unlock_context(tmp);
}
} else if (con) {
ast_verb(3, "Deleting context %s registrar=%s\n", tmp->name, tmp->registrar);