diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-27 21:12:14 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-27 21:12:14 +0000 |
commit | f4056d9f182741f9ffc297f661ec2bc68f821939 (patch) | |
tree | a6507b697c1f5fa95c5320fd0f077dc5643e55b0 | |
parent | 695ec5d5c70da50eb32109d7869ab9306c6e9b65 (diff) |
Add a missing unlock within error handling
(closes issue #13176)
Reported by: pj
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@134005 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | funcs/func_config.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/funcs/func_config.c b/funcs/func_config.c index 33f822b4a..0c734e0c9 100644 --- a/funcs/func_config.c +++ b/funcs/func_config.c @@ -146,6 +146,7 @@ static int config_function_read(struct ast_channel *chan, const char *cmd, char if (!(val = ast_variable_retrieve(cfg, args.category, args.variable))) { ast_log(LOG_ERROR, "'%s' not found in [%s] of '%s'\n", args.variable, args.category, args.filename); + AST_RWLIST_UNLOCK(&configs); return -1; } |