From: Joshua Colp Date: Wed, 14 May 2008 21:11:49 +0000 (+0000) Subject: Add a missing context unlock. X-Git-Tag: 1.6.2.0-beta1~2239 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d85a0eff754a00a3324ad360daf56935cb7f5e4;p=thirdparty%2Fasterisk.git Add a missing context unlock. (closes issue #12649) Reported by: ys Patches: pbx.c.diff uploaded by ys (license 281) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116461 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/pbx.c b/main/pbx.c index 86b4c0454a..cc14ba2eb1 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);