diff options
author | Steve Murphy <murf@digium.com> | 2007-11-27 22:14:55 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2007-11-27 22:14:55 +0000 |
commit | 1f792f1745c44cfb93ff3c43de8d91ebb493591d (patch) | |
tree | 76237d7227efd63212ccb9ebf0b4ea5f38733aa1 /main/pbx.c | |
parent | 21a22fa584436b4417aa44a131979a1d2fbe8e72 (diff) |
closes issue #11294; missed the conditional unlock of the contexts when the hash table is used instead; also, used the ast_free_ptr as advised.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89792 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index c23b211a6..b665e2c01 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -3604,7 +3604,8 @@ static struct ast_context *find_context_locked(const char *context) return c; } #endif - ast_unlock_contexts(); + if (!c) + ast_unlock_contexts(); return c; } |